Forums

Need page of child pages (with Flutter involved) (2 posts)

  1. upheredesign
    Member
    Posted 2 years ago #

    Hi,

    I am using Flutter to create real estate listing pages.

    But, I'm not able to find out how to have a parent page (ex. "My Listings) that shows a list of the individual listings (with a thumbnail and property description) and have the child pages be the individual property pages.

    I have the code:

    <?php
      if($post->post_parent)
      $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
      else
      $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
      if ($children) { ?>
      <--//ul>
      <?php echo $children; ?>
      </ul//-->
    
    <?php } ?>

    But that only shows text links, and I'm not sure how to incorporate my flutter data here.

    Thoughts?

  2. kevinlearynet
    Member
    Posted 2 years ago #

    Not sure if you're still working with this but I usually use the Query Child Of $Page plugin for this:

    http://blog.ftwr.co.uk/wordpress/query-child-of-page/

    It will add the ability to use child_of in a custom WP_Query.

Topic Closed

This topic has been closed to new replies.

About this Topic