[wp-hackers] Best way to create a "page" with plugin?
Mark Jaquith
mark.wordpress at txfx.net
Wed Nov 29 00:27:11 GMT 2006
On Nov 28, 2006, at 5:53 AM, Ian Barber wrote:
> it would be nice to
> have a method for excluding pages from being displayed by
> wp_list_pages and
> the like. I know wp_list_pages itself has a filter, but you get the
> HTML
> version which makes me a little worried that the markup will change
> and
> cause the removing to break.
Yeah, I've wanted that for a while. Plugins should be able to add to
the exclude list, and it might even be worth having per-page "Display
in page listings: [x]" option. Currently you have to hack the theme
to hide pages, and this is incredible user-unfriendly. I've taken to
doing <?php wp_list_pages('exclude=' . my_page_excludes()); ?> so I
only have to edit one thing to change global page excludes.
http://trac.wordpress.org/ticket/3402
--
Mark Jaquith
http://txfx.net/
More information about the wp-hackers
mailing list