SHARE
TWEET

Untitled

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