• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / Display One post Then Thumbs for Older Posts in Genesis

Display One post Then Thumbs for Older Posts in Genesis

Genesis Theme Framework Code Snippets

Add the following code to a theme template file to display one post and then thumbs for previous posts in Genesis.

<?php
// remove default thumbnail display
remove_action('genesis_post_content', 'genesis_do_post_image');
// display 1 full post, the rest excerpts + thumbnails
remove_action('genesis_post_content', 'genesis_do_post_content');
add_action('genesis_post_content', 'custom_post_content');
function custom_post_content() {
    global $loop_counter;
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    if( absint($loop_counter) == 0 && $paged == 1 ) {
        the_content();
    }
    else {
        genesis_do_post_image();
        the_excerpt();
    }
}
genesis(); // requires Genesis 1.3+

by Jack Alltrade on November 5, 2018

Filed Under: Code Snippets Tagged With: Code, Custom Templates, Genesis Framework, Layout

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates