Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul>
- <?php
- $thePostID = $post->ID;
- $args = array( 'numberposts' => 5, 'offset'=> 1, 'category' => 395 );
- $myposts = get_posts( $args );
- foreach( $myposts as $post ) :
- $parentID2 = get_post_meta ($post->ID, 'parentID', true);
- if ($thePostID == $parentID2) { ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php }
- endforeach; ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement