hello,
is it possible to exclude a page in the wp_list_pages function by name, and NOT by id
(because by id is not very generic).
and if yes, how ;)
hello,
is it possible to exclude a page in the wp_list_pages function by name, and NOT by id
(because by id is not very generic).
and if yes, how ;)
$page = get_page_by_title('Page Title');
echo $page->ID;thx for that
This is great, but I don't understand
$page->ID;
How would I pass the ID parameter of $page as an argument; for wp_list_pages('exclude=') for example?
cheers,
Evan
$page = get_page_by_title('Page Title To Exclude');
wp_list_pages('exclude='.$page->ID.'&title_li=');This topic has been closed to new replies.