• Hi,

    I’m using;

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

    To get children from a certain page category. Everything works fine, except I want to style the output, so it grabs a thumb, title, etc.

    How can I change the output?

    Thanks…

Viewing 1 replies (of 1 total)
  • Thread Starter arnii

    (@arnii)

    Okay, explained in another way;

    This code;

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

    Outputs the children under the current page/parent as

    • objects.
    • Is it possible to modify the output. What I want, is to output this;

      <li><a href="#post-<?php the_ID() ?>" onclick='$(".entries").accordion("activate", <?php echo $cnt++; ?>);'><img src="<?php $key="small_thumb"; echo get_post_meta($post->ID, $key, true); ?>" alt="View item" width="156" height="107" /><div class="client"><?php the_title() ?>/</div><div class="title"><?php $key="description"; echo get_post_meta($post->ID, $key, true); ?></div></a></li>

      I know the code itself doesn’t make much sense, but basicly I just want to be able to control the output.

      Possible? Anyone…

      Would really appriciate any feedback. The last 10 posts or so haven’t had any feedback 🙁

      Thanks!

      Arnii

Viewing 1 replies (of 1 total)
  • The topic ‘Styling of $children’ is closed to new replies.