• 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

Page excerpts on Whitespace home page

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 › Design Tips and Tricks › Page excerpts on Whitespace home page

This topic is: not resolved

Tagged: home, page, whitespace

  • This topic has 6 replies, 4 voices, and was last updated 10 years, 9 months ago by Christopher.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 3, 2014 at 4:51 am #133479
    Tim Squires
    Member

    Hello, I'm experimenting with the Whitespace theme.

    http://my.studiopress.com/themes/whitespace/#demo-full

    I really like the way that the post excerpts display on the home page, but I would like to display page excerpts, not posts.

    Does anyone have any tips or advice on how to achieve this?

    Many thanks,
    Tim


    timsquires.com.au

    http://my.studiopress.com/themes/whitespace/#demo-full
    February 10, 2015 at 2:00 pm #140372
    Christopher
    Participant

    This post is older (2 months) and no responses; I'm also interested in knowing how to do this. I have a small soccer team page that the Whitespace Pro theme would work perfectly for, if only I could have Pages displayed, not posts.

    Bumping to see if anyone can help.

    Thanks.


    Christopher Haynes | https://cphaynes.com

    February 10, 2015 at 5:33 pm #140402
    RoxG
    Member

    Ditto

    February 10, 2015 at 10:00 pm #140432
    Genesis Developer
    Member

    add this in your functions.php file

    function show_pages_on_home( $query ) {
      if ( $query->is_home() && $query->is_main_query() ) {
        $query->set( 'post_type', 'page' );
      }
    }
    add_action( 'pre_get_posts', 'show_pages_on_home' );

    Wanting to display the selected pages Then try this one

    function show_pages_on_home( $query ) {
      if ( $query->is_home() && $query->is_main_query() ) {
        $query->set( 'post_type', 'page' );
        $query->set( 'post__in', array(1,2,3) );  // Replace 1,2,3 by your page ID
      }
    }
    add_action( 'pre_get_posts', 'show_pages_on_home' );

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    February 10, 2015 at 10:21 pm #140434
    Genesis Developer
    Member

    This is the tips http://genesisdeveloper.me/display-pages-instead-posts-whitespace-pro-home-page/


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    February 11, 2015 at 4:58 pm #140533
    Tim Squires
    Member

    Hi Chinmoy,

    Thank you, that works beautifully.

    Very much appreciated,
    Tim


    timsquires.com.au

    February 12, 2015 at 7:48 am #140588
    Christopher
    Participant

    I'll second Tim's response.

    Chinmoy is part of the reason I only use Genesis based themes. Good stuff!!!


    Christopher Haynes | https://cphaynes.com

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ 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