[wp-testers] wp_list_pages child_of parameters
Michael E. Hancock
mhancock at us.net
Fri Feb 17 03:32:29 GMT 2006
From: "Safirul Alredha" <safirul.alredha at gmail.com>
> The wp_list_pages child_of parameter seems to be not working in the
> theme that I'm currently working on. The tag returns no result.
>
> Example:
>
> Let say "About Main Page" page is ID 2 and have a subpage called "About
Subpage"
>
> About Main Page
> - About Subpage
>
> <?php wp_list_pages('sort_column=menu_order&title_li=&child_of=2'); ?>
>
> Correct me if I'm wrong but isn't the tag suppose to display "About
Subpage".
Safirul,
Not seeing this problem in 2.0.1. Setup a page called "Child of About" and
assigned its Page Parent to be "About".
Using your example in sidebar.php, my output was:
Child of About
Regards
MichaelH
More information about the wp-testers
mailing list