[wp-trac] [WordPress Trac] #11539: Add Exlude Page in Admin Panel

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 16:11:01 UTC 2009


#11539: Add Exlude Page in Admin Panel
-----------------------------+----------------------------------------------
 Reporter:  GuruXL           |       Owner:                             
     Type:  feature request  |      Status:  new                        
 Priority:  normal           |   Milestone:  3.0                        
Component:  Administration   |     Version:  2.9                        
 Severity:  normal           |    Keywords:  needs-patch, pages, exclude
-----------------------------+----------------------------------------------

Comment(by GuruXL):

 Replying to [comment:9 hakre]:
 > wp_list_pages() is a
 [http://codex.wordpress.org/Template_Tags/wp_list_pages template tag]. I
 mainly see this problem:
 >
 >  1. If that function gets changed, it must add (not change the current
 behavior) for backcompt reasons.
 >
 > Please see the above link for the documented default behaviour.
 >
 > I see no problem if the function get's a new parameter that provides the
 behaviour you like. Then you won't need to change your theme everytime you
 add a page.
 >
 > {{{ wp_list_pages( $args = array( 'excluded_from_nagivation' =>
 'excluded' ) );}}}
 >
 > default would be {{{'included'}}};
 >
 > Just an idea. What do you think about that scenario?

 I don't care about the tag functionality as long as when I create the
 post, I can delineate if the page should be excluded from the navigation
 array in this case wp_list_pages().

 It doesn't matter how you implement it through the code base but, that the
 option is available in the admin panel and you are not manually adding
 every page you want to exclude.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11539#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list