• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Eleven40 Home/Blog issue (controlling #/format of posts)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Eleven40 Home/Blog issue (controlling #/format of posts)

This topic is: not resolved

Tagged: blog, Eleven40, full post, homepage

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 2 months ago by essaysnark.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 24, 2013 at 5:45 pm #30994
    seanb
    Member

    decahedralist.com is the URL

    I need to do 2 things:

    I want to have the homepage include the most recent, entire blog post and a link to readmore. No more small posts below the most recent post.
    I want the Blog link to link to the blog page. On the blog page I want to have 5 most recent, entire posts (not the shortened posts)

    Right now I went to  Settings > Reading and chose Static Homepage: Select, Posts Page: Blog

    March 28, 2013 at 12:25 am #31682
    essaysnark
    Participant

    StudioPress Support emailed me the code below to handle your first request re: the home page  - put it in functions.php, change the "5" to "1" and it should work (Settings -> Reading probably needs to be "Your latest posts", not a static page.)


    add_action( 'pre_get_posts', 'child_change_home_query' );
    /** Changes the query on the home page*/
    function child_change_home_query( $query ) {
    if( $query->is_main_query() && $query->is_home() ) {
    $query->set( 'posts_per_page', '5' ); //change this value to match the posts per page value you wish to show on the home page
    }
    }

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble