/ Published in: PHP
URL: http://wordpress.org/support/topic/custom-post-type-taxonomy-pagination
Important: In WordPress, a page name and custom post type can't have the same name. If the below loop doesn't work, check to make sure they are different! Also, this assumes WP Page-Navi is installed and active.
Expand |
Embed | Plain Text
<h1><?php the_title(); ?></h1> <?php the_content(); ?><br /><br /> <?php $i = 0; ?> <?php wp_reset_postdata(); } ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <div class="testimonial-block"> <?php $authorpic = get('testimonial_info_image'); $authortitle = get('testimonial_info_title_company'); ?> <?php if ($authorpic != NULL) { ?><img src="<?php echo $authorpic; ?>" alt="person" class="testimonial-pic" /><?php } ?> <?php the_content(); ?> <strong><?php the_title(); ?><br /> </div> <?php $i++; endwhile; ?> <div class="clear"><br /><br /></div> <?php wp_reset_postdata(); } ?>
You need to login to post a comment.
