• I’ve run into a strange issue with blog categories on a child theme I created. On the category.php file, I’m showing the headline and abstract of blog posts, but when you click on the post, instead of seeing the full article you get the same abstract. I’ve tried removing the child functions.php, single.php and category.php files and allow the parent theme display, but I’m getting the same results. Any idea on what I’m overlooking? Here’s the link to a blog category page:

    https://airtechsite.staging.wpengine.com/category/blog/

    Here is the code on the category page as well:

    <?php if ( have_posts() ) : ?>
    <header class=”archive-header”>
    <h2 class=”archive-title”><?php printf( single_cat_title( ”, false ) ); ?></h2>

    <?php if ( category_description() ) : // Show an optional category description ?>
    <div class=”archive-meta”><?php echo category_description(); ?></div>
    <?php endif; ?>
    </header><!– .archive-header –>

    <?php /* The loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>

    <?php twentythirteen_paging_nav(); ?>

    <?php else : ?>
    <?php get_template_part( ‘content’, ‘none’ ); ?>
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • Hi – could you show me your template part content-*.php ?

    Yet you can try something like this:
    if ( is_category() || is_archive() ) {
    the_excerpt();
    } else {
    the_content();
    }

Viewing 1 replies (of 1 total)
  • The topic ‘issue with blog abstracts’ is closed to new replies.