Forums
Home / Plugins / how do I exclude the current page from wp_list_pages
(@perthmetro)
14 years, 7 months ago
how do I exclude the current page from wp_list_pages
(@samboll)
http://wordpress.org/extend/plugins/exclude-pages/
I mean I’m on page A and my page list only shows B,C,D and E
and if i’m on page B it will only list pages A,C,D and E
(@michaelh)
Didn’t test this but try:
wp_list_pages('title_li=&exclude='.$post->ID);
Related: wp_list_pages() Stepping Into Template Tags Stepping Into Templates Template Hierarchy
works great. thanks