Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 22nd, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>