Advertisement
Digitalraindrops

page-testimonials.php

Aug 21st, 2011
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 KB | None | 0 0
  1. <?php
  2.  /*
  3.  Template Name: Client Testimonials
  4. */
  5.  ?>
  6.  
  7. <?php get_header(); ?>
  8. <div id="container">
  9.     <div id="main">
  10.     <?php if ( have_posts() ): ?>
  11.         <?php while ( have_posts() ): ?>
  12.            
  13.             <?php global $post; $temp_post = $post; // Store the Post ?>
  14.            
  15.             <?php the_post(); ?>
  16.             <div id="post-<?php the_ID(); ?>" <?php // post_class(); ?>>
  17.                        
  18.                 <div class="entry-content">
  19.                     <?php the_content(); ?>
  20.                     <!-- <?php edit_post_link( __( 'Edit', 'simplicius' ), '<span class="edit-link">', '</span>' ); ?> -->
  21.                 </div><!-- .entry-content -->
  22.             </div><!-- #post-## -->
  23.         <?php endwhile; ?>
  24.     <?php endif; ?>
  25.    
  26.     <?php /* Start This is the Testimonial Area */
  27.        
  28.        
  29.         $wp_query= null;
  30.         $wp_query = new WP_Query();
  31.         $args = array(
  32.             'post_type' => 'testimonials',
  33.             'showposts' => '10',
  34.             '&paged' => $paged,
  35.         );
  36.         $wp_query->query( $args );
  37.     ?>
  38.  
  39.     <?php if ( $wp_query->have_posts() ) : ?>
  40.    
  41.         <!-- Add Top Pagination Code Here -->
  42.        
  43.         <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
  44.             <div id="post-<?php the_ID(); ?>" <?php // post_class(); ?>>
  45.                        
  46.                 <div class="entry-content">
  47.                     <?php the_content(); ?>
  48.                     <!-- <?php edit_post_link( __( 'Edit', 'simplicius' ), '<span class="edit-link">', '</span>' ); ?> -->
  49.                 </div><!-- .entry-content -->
  50.            
  51.             </div><!-- #post-## -->
  52.            
  53.         <?php endwhile; ?>
  54.    
  55.         <!-- Add Bottom Pagination Code Here -->
  56.    
  57.     <?php endif; ?>
  58.  
  59.     <?php $post = $temp_post; // Reset the Post ?>
  60.    
  61.     </div><!-- /#main -->
  62. </div><!-- /#container -->
  63.  
  64. <?php get_sidebar(); ?>
  65.  
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement