WordPress.org

Support

Support » Themes and Templates » [Theme: PicTree] Child Pages

[Theme: PicTree] Child Pages

  • 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…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    When I echo the ID

    What code are you using here?

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

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

    Moderator Andrew Nevins

    @anevins

    Forum moderator

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

    $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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Theme: PicTree] Child Pages’ is closed to new replies.
Skip to toolbar