Listing Pages Using wp_list_pages and the_title
-
Hi,
I am relatively new to WordPress and very new to PHP.
I am having difficulties trying to get a parent page to list its chiuldren. The following code works successfully:
<?php
global $id; // the page id
wp_list_pages(‘child_of=’ . $id . ‘&title_li=<h3>’ . __(‘More About This Subject’) .'</h3>’ );
?>but now I am trying to replace the This Subject shown above with the actual page title using the_title function (i.e. More About the_title).
Can anyone help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Listing Pages Using wp_list_pages and the_title’ is closed to new replies.