Parent Page as heading in wp_list_pages
-
I want the parent of the subpage to show up as the heading.
In this code the id of the parent shows up as the heading. How do I get the parent id title instead of the parent id number?wp_list_pages(‘title_li=<h2>’ . __(“$post->post_parent”) . ‘</h2>&child_of=’.$post->post_parent.’);
I also tried <?php the_title(‘<h2>’, ‘</h2>’); ?> which gives the title… is there a way to make it the “parent-title” instead?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Parent Page as heading in wp_list_pages’ is closed to new replies.