• Resolved tubaguy50035

    (@tubaguy50035)


    Whenever I visit a tag, my theme is only displaying one post rather than looping through several.

    My tag.php looks like this:

    <?php get_header(); ?>
    <div id="blog-content">
    <h1 class="page-title"><?php _e( 'Tag Archives:', 'blankslate' ) ?> <span><?php single_tag_title() ?></span></h1>
    <?php
    get_template_part( 'nav', 'above' );
    $count = 0;
    while ( have_posts() ){
            the_post();
            get_template_part( 'entry' );
    }
    get_template_part( 'nav', 'below' );
    ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    My entry.php looks like:

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <div id="blog-content">
    <h5 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read %s', 'blankslate'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h5>
    <?php get_template_part( 'entry', 'meta' ); ?>
    <?php
    if(is_archive() || is_search()){
    get_template_part('entry','summary');
    } else {
    get_template_part('entry','content');
    }
    ?>
    <?php
    if ( is_single() ) {
    get_template_part( 'entry-footer', 'single' );
    } else {
    get_template_part( 'entry-footer' );
    }
    ?>
    </div>

    Anyone see anything wrong with what I’m doing? This is built off of the blankslate theme.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tags are only displaying one (the most recent) post’ is closed to new replies.