开发者

Wordpress exclude child from child page listing

开发者 https://www.devze.com 2023-02-02 19:53 出处:网络
I try to exclude certain child pages from the sidebar page listing. This is开发者_StackOverflow the code I have:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消