Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) :
- while (have_posts()) :
- the_post();
- the_content();
- endwhile;
- endif;
- ?>
- <?php
- $args = array( 'posts_per_page' => 5, 'category_name' => 'Team' );
- $myposts = get_posts( $args );
- foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
- <li>
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </li>
- <?php endforeach;
- wp_reset_postdata();?>
Add Comment
Please, Sign In to add comment