The website is http://www.sagepresence.com
The custom post type is called “PresentationTip”
The page http://www.sagepresence.com/presentationtips displays an archive(ish) page it uses a type-PresentationTip template in the theme. Each of the links in the left column seems correct. However, no matter which of these links use press, you always end up on a single-PresentationTip template page that displays the most recent PresentationTip post. The page has the title and uri of the correct page, but the content is of the most recent custom post type, only the most recent, and always the most recent.
The loop I’m using on the single-PresentationTip is:
<?php $loop = new WP_Query( array( 'post_type' => 'PresentationTip', 'posts_per_page' => 1 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h2>' ); ?>
- The topic ‘Custom Post Types only displays most recent’ is closed to new replies.