Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13485

    Hi all,

    I would like to have the category pages of my blog display an excerpt of each post rather than the full post. However, I want to keep the index page of the blog as it is (full posts displayed).

    Is this possible?

    Thanks.

    #79424

    In archive.php replace:

    get_template_part( 'includes/loop', 'index');

    with:

    get_template_part( 'includes/loop', 'archive');

    Then make a copy of includes/loop-index.php and call it loop-archive.php. Open up loop-archive.php and replace:

    the_content(__('Read more  →','avia_framework'));

    with:

    the_excerpt();
    echo '<a class="more-link" href="'.get_permalink().'">Read more →</a>';

    #79425

    Awesome! Thanks so much for the quick response!!!

    #79426

    Hey,

    Glad Peter fixed it.

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Excerpt rather than full post for category pages’ is closed to new replies.