[wp-hackers] Static content plugin
Ryan Boren
ryan at boren.nu
Fri Jun 18 19:24:49 UTC 2004
On Fri, 2004-06-18 at 13:57, Alex wrote:
> This could be done with a rewrite rule and a plug-in, or modification
> to WP itself. I'd guess that'd be up to the WP devs whether they want
> this integrated or as a plugin. I think I could code a plugin that
> would do this (if there is a hook for the rewrite rule options). Dunno
> if it is better as a feature?
There is already a hook for adding to the rewrite rules. It's in
options-permalink.php
echo apply_filters('rewrite_rules', $rules);
Ryan
> On Fri, 18 Jun 2004 13:48:30 -0500, Ryan Boren <ryan at boren.nu> wrote:
> >
> > On Fri, 2004-06-18 at 13:36, Matt Mullenweg wrote:
> > > John Hesch wrote:
> > >
> > > > What about creating static content such as an 'About Me'
> > > > page that would be written as a post but would not post as
> > > > entry in WP but become a static page that is linked
> > > > from the links menu? This would make it easy to add static
> > > > content using the WP framework. Other uses for such a plugin
> > > > would be a Contact page, a FAQ, A Paypal donate page, a
> > > > favorite restaurants, etc, etc.
> > >
> > > There is a post_status value for this in 1.2.
> >
> > Yep, "static". Are we going to do anything with this in the default WP
> > distribution? We would need to expose it on the advanced edit page and
> > exclude "static" posts from archive queries. static posts would have to
> > be named by id or nicename. We could even have a separate permalink
> > structure for static posts. Maybe something like /site/post-title by
> > default. Or, just put it in a plugin. It's implemenation would be a
> > good indicator of what hooks we need.
> >
> > Ryan
> >
> >
> >
> >
> > _______________________________________________
> > hackers mailing list
> > hackers at wordpress.org
> > http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> >
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
More information about the hackers
mailing list