Show child pages in a child page?
-
I got this code from https://www.atourworst.org:
post->post_parent) ) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } wp_list_pages(”title_li=&child_of=$parent”); ?>
and i fixed it to be this:
<?php if ($post->post_parent) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } wp_list_pages('title_li=&child_of=$parent'); ?>
its supposed to show the child pages on the child pages like this:
if on about page –
ask me
rawr
poopif on ask me page –
ask me
rawr
poopiuno if i sound normal but that the best way i can explain it. can someone help me out or correct me or something? id really appreciate it. thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show child pages in a child page?’ is closed to new replies.