• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2671

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

Display Posts As Excerpts or Full Content For Specific Categories On Any Archive

This home.php template file enables you to display your posts as an excerpt or the full post content depending which category the post is assigned to.

In other words, you can display some posts as excerpts and some displaying the full posts content, all on the same archive page.

All you need to do is swap out the category i.d’s in the code with your own.

The code overrides the Genesis > Theme Settings > Content Archive > Display settings only for the archive you have used to name the file:

display

Any categories not included in the code can be displayed as excerpts or in full.

Here’s the template file for members:

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems