Support » Plugins » list pages with description

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sage, did you ever get this resolved?

    I need the same thing, except want to generate the list w/ description on an archive page.


    Figured out a solution based on code samples found here:

    $pages = get_pages('child_of='.$post->ID); // selects all children of current page
    	foreach($pages as $page) {
     		$custom_blurb = get_post_meta($page->ID, 'custom_blurb', true); // grabs description from custom field
    	echo "<h3><a href=\"".get_page_link($page->ID)."\">$page->post_title</a></h3>";
    	echo $custom_blurb;  

    Thanks for posting this! Exactly what I needed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘list pages with description’ is closed to new replies.