1 post, 2 templates

Your best bet would probably be the Rewrite Endpoints API. The API allows you to create post URLs with endpoints like lorem.com/post/133/json/ or lorem.com/post/133/print/. You’ll find useful code examples in the link provided.

How to make a list of posts displaying them 5 by 5 with a “next posts” link?

I found the actual answer in a stackoverflow question. Quoted from the answer: <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 10, ‘paged’ => $paged ); $wp_query = new WP_Query($args); while ( have_posts() ) : the_post(); ?> <h2><?php the_title() ?></h2> <?php endwhile; ?> <!– then the pagination … Read more

explain why is_single doesn’t work

Looks like you’re trying to display comments for a single post that has comments disabled. You should find if ( comments_open() ) statement just one line below. Paste your code there and it will work just fine: <?php if ( comments_open() ) : ?> <div class=”comments-link”> <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, … Read more