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