WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: PicTree] Child Pages (5 posts)

  1. trinityr
    Member
    Posted 1 year ago #

    Trying to list child pages of current parent page but I'm afraid the timthumb/scroller piece of this theme may be interfering with the call.

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

    Fairly straight forward after reviewing the Codex and other similar posts. When I echo the ID to retrieve the page ID it shows the first loaded image/post in the scroller.

    Here is the page code:
    http://pastebin.com/UxMpP1jc

    Any ideas? I'm stumped...

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    When I echo the ID

    What code are you using here?

  3. trinityr
    Member
    Posted 1 year ago #

    <?php echo $post->ID; ?> <?php the_title($echo); ?>

    Instead of returning the page ID it returns the last image in the scroller.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which, the echo or the_title returns an image in the scroller, instead of the page ID?

  5. trinityr
    Member
    Posted 1 year ago #

    $post->ID returns the ID of an image in the scroller.
    the_title returns the title of an image in the scroller.

    The return values match each other.

Topic Closed

This topic has been closed to new replies.

About this Topic