This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 22nd, 2012  |  syntax: None  |  size: 0.34 KB  |  views: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>
clone this paste RAW Paste Data