Wordpress exclude child from child page listing
I try to exclude certain child pages from the sidebar page listing. This is开发者_StackOverflow the code I have:
<?php wp_list_pages('order=ASC&title_li=&depth=3&child_of=41&exclude=247'); ?>
It lists all children under ID 41 but does not exclude the child ID 247. Anyone knows how to get this code right?
I have code doing exactly thesame thing that works
wp_list_pages('child_of=4&depth=2&exclude=89');
The only thing I can think of is maybe 247 doesnt exist or isnt the page you think it is, I'd also remove the
title_li=
since it's blank.
精彩评论