Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Client Testimonials
- */
- ?>
- <?php get_header(); ?>
- <div id="container">
- <div id="main">
- <?php if ( have_posts() ): ?>
- <?php while ( have_posts() ): ?>
- <?php global $post; $temp_Post = $post; // Store the Post ?>
- <?php the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php // post_class(); ?>>
- <div class="entry-content">
- <?php the_content(); ?>
- <!-- <?php edit_post_link( __( 'Edit', 'simplicius' ), '<span class="edit-link">', '</span>' ); ?> -->
- </div><!-- .entry-content -->
- </div><!-- #post-## -->
- <?php endwhile; ?>
- <?php endif; ?>
- <?php /* Start This is the Testimonial Area */
- $wp_query= null;
- $wp_query = new WP_Query();
- $args = array(
- 'post_type' => 'testimonials',
- 'showposts' => '10',
- '&paged' => $paged,
- );
- $wp_query->query( $args );
- ?>
- <?php if ( $wp_query->have_posts() ) : ?>
- <!-- Add Top Pagination Code Here -->
- <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php // post_class(); ?>>
- <div class="entry-content">
- <?php the_content(); ?>
- <!-- <?php edit_post_link( __( 'Edit', 'simplicius' ), '<span class="edit-link">', '</span>' ); ?> -->
- </div><!-- .entry-content -->
- </div><!-- #post-## -->
- <?php endwhile; ?>
- <!-- Add Bottom Pagination Code Here -->
- <?php endif; ?>
- <?php $Post = $temp_post; // Reset the Post ?>
- </div><!-- /#main -->
- </div><!-- /#container -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement