Advertisement
Guest User

Untitled

a guest
Sep 14th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2.                 global $post;
  3.                 $args = array('showposts' =>3, 'category' =>5);
  4.                 $myposts = get_posts( $args );
  5.                 foreach( $myposts as $post ) :  setup_postdata($post); ?>
  6.         <div class="about section" id="post-<?php the_ID(); ?>"> <!-- Start News Pages -->
  7.    
  8.          <div class="wrap">
  9.        
  10.             <div class="content">
  11.                 <div class="prev prev-posts"><?php previous_post('%', '', 'no'); ?> </div>
  12.                 <div class="next next-posts"> <?php next_post('%', '', 'no'); ?></div>
  13.             <div class="inner">
  14.            <?php the_title(); ?>
  15.            <?php the_excerpt(); ?>
  16.         </div> <!-- End inner -->
  17.         </div> <!-- End Content -->
  18.            </div> <!--end wrap -->
  19.          </div> <!-- End section -->
  20.           <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement