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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

First Post Shows Full Content Limit 2nd & Subsequent Posts Display Excerpts

This tutorial for Genesis users provides the PHP code which enables you to:

  1. Show the full content for the 1st post in any archive page including, front, home, blog & category archive pages etc.
  2. After the first post, show excerpts for all other posts on the 1st page of any paginated archive page or on all paginated pages.
  3. Modify the code to display any number of posts in full and any number of subsequent posts as excerpts.
  4. Change the conditional tag for specific archive pages only.
  5. Override the Genesis > Theme Settings > Content Archives > Display settings regardless if whether they are set to display the Entry Content or Entry Excerpts.

Here’s an example showing full content for the first post and an excerpt for the second post:

full-content-then-excerpts

Here’s the full code for logged in members which includes 2 different solutions:

Register for full access

Related Code Snippets

  • Show Full Post on Front Page & Excerpts on All Archives

Reader Interactions

Comments

  1. Joelle Reeder says

    November 18, 2020 at 12:56 am

    I used this with is_home (since my posts page is not my front page) and it works great, but what if I only want the most recent post on the posts page? I want only one post, the most recent one, on the homepage, in full. And then when you paginate, it’s excerpts the whole day through. I assume it’s possible, I’m just not sure where to put such a thing. 🙂

    Log in to Reply
    • Brad Dalton says

      November 18, 2020 at 2:30 am

      You can use pre_get_posts

      But, how many posts per page did you want to show for the 2nd and subsequent paginated pages?

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.