Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array ( 'category' => single_cat_title(), 'posts_per_page' => 5);
- $myposts = get_posts( $args );
- foreach( $myposts as $post ) : setup_postdata($post);
- ?>
- <li>
- <?php the_title(); ?>
- </li>
- <?php endforeach; ?>
Add Comment
Please, Sign In to add comment