: [wp-hackers] Looking for plugin development guidance

Mike Walsh mike_walsh at mindspring.com
Wed Nov 14 10:05:43 GMT 2007


 [ ... snipped ... ]

> I am looking for suggestions on the best or recommended way to expose new
> functionality to the user facing part of the web site.  My initial thought
> is to automatically generate pages when the plugin is installed for the
> various things I would need (swim meet schedule, results, roster, etc.) to
> expose to the typical user.



I think putting them on pages would be the best thing, since it's simple and
easy to navigate to.

[ ... snipped ... ]

Mike Walsh wrote:
> I am looking for suggestions on the best or recommended way to expose new
> functionality to the user facing part of the web site.  My initial thought
> is to automatically generate pages when the plugin is installed for the
> various things I would need (swim meet schedule, results, roster, etc.) to
> expose to the typical user.

My advice is to have the plugin define new URLs. For example, you 
could make it so that
    whatever.com/swim_meets
gives the swim meet schedule that your plugin would generate.

To do this, you need to do some programming with the Query Vars and 
Rewrite Rules. See this article in the Codex (Custom Archives and 
Permalinks for Custom Archives sections should get you going):
      http://codex.wordpress.org/Custom_Queries

[ ... snipped ... ]


Hope this helps,
     --Jennifer


[ ... snipped ... ]

After looking at these two suggestions, I think for the time being, I am
going to go with simply adding pages with wp_insert_post().  It may not be
as elegant and the query vars and rewrite rules solution but it looks like
it will be a whole lot less complicated (ie work) and right now I am more
focused on getting something up and running so I can do some validation with
the swim team coaches and leadership committee to make sure all of our needs
are met.

Thanks for the advice!

Mike

--
Mike Walsh - mike_walsh at mindspring dot com






More information about the wp-hackers mailing list