WP SITES

2952 Tutorials & 191 Plugins

Display Excerpts On Blog Page & Full Content On Other Archives in Genesis

In this post i’ll provide the PHP code which creates a custom blog page template displaying your posts excerpts.

This post is based on this forum question:

I’ve got my blog set up using the blog page template, but I also want to have pages that show posts from another category. I assume that using an archive/category page is the way to go? If so, I would like the full content to show on the category pages, but only the excerpt on the blog page.

The code in this template overrides the Genesis > Theme Settings > Content Archives which you can set to show full content.

genesis content archives

The above settings affect any blog listings page, including archive, author, blog, category, search, and tag pages however the code in this post enables you to only display excerpts on your custom blog page while all other archives displays the full content.

Related Tutorials

5 responses to “Display Excerpts On Blog Page & Full Content On Other Archives in Genesis”

  1. mates222 Avatar
    mates222

    The code isn’t showing on the page. Anything I can do?

    1. Brad Dalton Avatar
      Brad Dalton

      Worked out the problem. Can’t add an opening PHP tag.

  2. Thanks Brad, I really appreciate the time you took to post this and explain it.

    1. Brad Dalton Avatar
      Brad Dalton

      You’re welcome Jodi.

      I think this is the best solution as well rather than use a custom function.

      1. Got it. Thanks!

Was This Tutorial Helpful?