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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Show Full Post on Genesis Home Page & Excerpts on All Archives

If you go to Genesis > Theme Settings > Content Archives, you can select either full content or excerpts.

content archives

The only problem is, these options will affect any blog listings page, including archive, author, blog, category, search, and tag pages.

What if you want full post content on one archive and excerpts on another?

To display full post content on your home page and excerpts on all other archives, simply:

  1. Create a new front-page.php file using a code editor like Notepad++
  2. Copy and paste the PHP code below into your new front-page.php file
  3. Save and upload the file to the root directory of your child themes folder.

If your theme already includes a front-page.php, home.php or index.php file, add the following code to it before the closing genesis(); tag.

Here’s the code for logged in members:

Register for full access

Related Code Examples

  • Display 1st Post in Full Show All Other Posts in Excerpts

Reader Interactions

Comments

  1. Rita Aspegren says

    July 16, 2017 at 6:57 am

    This doesn’t work for me. When I click on excerpts the front-page also gets excerpts. I have created a front-page.php and pasted the first code in your tutorial.

    What I want is full posts on front-page AND on all the pages I reach via pagination on front-page and following pages.
    I do not want featured images on front-page and following pages, but I want featured images on archive pages.
    And I would like to get rid of the extra title I get on the first page – which is a copy of the first entry.

    Log in to Reply
    • Rita says

      July 16, 2017 at 7:03 am

      Forgot to say I’m using Twentyseven pro theme.

      Log in to Reply
      • Rita says

        July 16, 2017 at 7:15 am

        Hm – me again. It seems to work if I do not chose static home page but last posts. And thats good enough for me.

        Log in to Reply
        • Brad Dalton says

          July 16, 2017 at 7:42 pm

          Hello Rita.

          Yes, never choose static page for front page, always use Front page displays > Your latest posts

          If you want to remove the posts, use a custom front-page.php file.

          Log in to Reply
  2. Linda Massey says

    March 27, 2017 at 10:48 am

    Hi Brad,
    I’m using Gallery Pro and would like to have excerpts on the front page / homepage and full content on the blog page. Can you help with this?
    Thanks,
    Linda

    Log in to Reply
    • Brad Dalton says

      March 27, 2017 at 11:10 am

      Try these code snippets https://wpsites.net/web-design/genesis-blog-posts-template-fully-customizable/

      Log in to Reply
    • Brad Dalton says

      March 27, 2017 at 2:39 pm

      Here’s a complete tutorial

      Log in to Reply
  3. mfd says

    March 18, 2015 at 1:56 pm

    Yep!

    Log in to Reply
    • Brad Dalton says

      March 18, 2015 at 2:03 pm

      Tested locally it works for me. Please send me your login details using this secure form.

      Did you add a plugin or anything to do this as well?

      Log in to Reply
      • mfd says

        March 18, 2015 at 2:14 pm

        No plugins added to help with it.

        Log in to Reply
        • Brad Dalton says

          March 18, 2015 at 2:30 pm

          I noticed your theme includes a front-page.php file with widgets that when isn’t populated, displays †he posts but the code also needs the is_front_page() conditional which i added.

          Or you could simply delete the front-page.php file as you’re not using the widgets hard coded into it.

          Log in to Reply
          • mfd says

            March 18, 2015 at 3:20 pm

            I feel like I am crazy that it’s working on your end but not mine?

            When I go to page 2 I still see full posts:
            http://simplyshellie.com/page/2/

            An archive page works perfectly:
            http://simplyshellie.com/category/make/breakfast/

            I cleared the cache and checked in 2 browsers…what am I missing?

  4. mfd says

    March 18, 2015 at 1:20 pm

    Brad-Following up from the Studiopress forum regarding this site:
    http://www.SimplyShellie.com

    I wanted full posts on the home page and excerpts on all archives pages. I implemented the “alternate solution” above and no changes occurred on the site. Any insight would be appreciated.

    Log in to Reply
    • Brad Dalton says

      March 18, 2015 at 1:28 pm

      When you say home page, do you mean posts page or front page because they are different.

      Log in to Reply
      • mfd says

        March 18, 2015 at 1:32 pm

        I mean my posts page (which is the home page -simplyshellie.com), I am not using the static page option on this site.

        Log in to Reply
        • Brad Dalton says

          March 18, 2015 at 1:36 pm

          Add this at the end of your functions file using a code editor. Assumes you’re set the Genesis > Theme Settings > Content Archives to show excerpts:

          remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
          remove_action( 'genesis_post_content', 'genesis_do_post_content' );
          add_action( 'genesis_entry_content', 'full_post_content' );
          add_action( 'genesis_post_content', 'full_post_content' );
          function full_post_content() {
          	if ( is_home() ) {
                          the_content( __( '[Read more...]', 'genesis' ) );
          } 
          else {
                  genesis_do_post_content();
              }
          }
          Log in to Reply
          • mfd says

            March 18, 2015 at 1:44 pm

            I added and now only get full posts on all pages.

          • Brad Dalton says

            March 18, 2015 at 1:55 pm

            How about your settings?

            Assumes you’re set the Genesis > Theme Settings > Content Archives to show excerpts:

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

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