Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $post;
- $args = array('showposts' =>3, 'category' =>5);
- $myposts = get_posts( $args );
- foreach( $myposts as $post ) : setup_postdata($post); ?>
- <div class="about section" id="post-<?php the_ID(); ?>"> <!-- Start News Pages -->
- <div class="wrap">
- <div class="content">
- <div class="prev prev-posts"><?php previous_post('%', '', 'no'); ?> </div>
- <div class="next next-posts"> <?php next_post('%', '', 'no'); ?></div>
- <div class="inner">
- <?php the_title(); ?>
- <?php the_excerpt(); ?>
- </div> <!-- End inner -->
- </div> <!-- End Content -->
- </div> <!--end wrap -->
- </div> <!-- End section -->
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement