• Resolved dazedandconfuzed

    (@dazedandconfuzed)


    Anyone know how to change it so that my full post vs. the “read more message” displays on my category page? Thanks in advance for any help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Read the codex about the_content and the_excerpt functions.

    Search category.php or archive.php, and replace this:

    <?php the_content(); ?>

    With this:

    <?php the_excerpt(); ?>

    Thread Starter dazedandconfuzed

    (@dazedandconfuzed)

    There isn’t a “category.php” in the list. I can’t find “<?php the_content(); ?>” on the “archive.php” page. Here’s what’s on that page:

    <div id=”pageheader” class=”titleclass”>
    <div class=”container”>
    <?php get_template_part(‘templates/page’, ‘header’); ?>
    </div><!–container–>
    </div><!–titleclass–>

    <div id=”content” class=”container”>
    <div class=”row”>
    <?php global $virtue; if(isset($virtue[‘blog_archive_full’]) && $virtue[‘blog_archive_full’] == ‘full’)
    {$summery = ‘full’; $postclass = “single-article fullpost”;} else {$summery = ‘normal’; $postclass = ‘postlist’;} ?>
    <div class=”main <?php echo kadence_main_class(); ?> <?php echo $postclass;?>” role=”main”>

    <?php if (!have_posts()) : ?>
    <div class=”alert”>
    <?php _e(‘Sorry, no results were found.’, ‘virtue’); ?>
    </div>
    <?php get_search_form(); ?>
    <?php endif; ?>
    <?php
    if($summery == ‘full’) {
    while (have_posts()) : the_post();
    get_template_part(‘templates/content’, ‘fullpost’);
    endwhile;
    } else {
    while (have_posts()) : the_post();
    get_template_part(‘templates/content’, get_post_format());
    endwhile;
    }

    if ($wp_query->max_num_pages > 1) : ?>
    <?php $bignumber = 999999999;
    $pagargs = array(
    ‘base’ => str_replace( $bignumber, ‘%#%’, esc_url( get_pagenum_link( $bignumber ) ) ),
    ‘format’ => ‘?page=%#%’,
    ‘total’ => $wp_query->max_num_pages,
    ‘current’ => max( 1, get_query_var(‘paged’) ),
    ‘prev_next’ => True,
    ‘prev_text’ => ‘?’,
    ‘next_text’ => ‘?’,
    ‘type’ => ‘plain’,
    ); ?>
    <div class=”wp-pagenavi”>
    <?php echo paginate_links( $pagargs ); ?>
    </div>

    <?php endif; ?>

    </div><!– /.main –>

    Please keep in mind that I am a “newbie”! ??

    hannah

    (@hannahritner)

    @dazedandconfuzed,
    In theme options > misc settings set the blog archive to full. Then in settings > reading set “For each article in a feed, show” to full text.

    Hannah

    Thread Starter dazedandconfuzed

    (@dazedandconfuzed)

    Thank you, hannah. That worked!

    Thread Starter dazedandconfuzed

    (@dazedandconfuzed)

    Thank you, hannah. That worked!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show full post on category page?’ is closed to new replies.