SHARE
TWEET

Untitled

a guest Apr 22nd, 2012 16 Never
  1. <ul>
  2. <?php
  3. $thePostID = $post->ID;
  4. $args = array( 'numberposts' => 5, 'offset'=> 1, 'category' => 395 );
  5. $myposts = get_posts( $args );
  6. foreach( $myposts as $post ) : 
  7.         $parentID2 = get_post_meta ($post->ID, 'parentID', true);
  8.         if ($thePostID == $parentID2) { ?>
  9.         <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  10.         <?php }
  11. endforeach; ?>
  12. </ul>
RAW Paste Data
Top