• 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

How Do I Get Main Pages on Homepage in Genesis Sample

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 › How Do I Get Main Pages on Homepage in Genesis Sample

This topic is: not resolved

Tagged: pre_get_posts, single pages, WordPress loop

  • This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 18, 2018 at 12:27 am #223815
    iCantCU
    Member

    How do I get four or five main pages of my site on the homepage in Genesis Sample? I'd like it similar to the way the posts show on the homepage, but with pages.

    Thanks in advance!

    David

    http://nfbkeystone.org
    October 18, 2018 at 1:05 am #223817
    Brad Dalton
    Participant

    You can add code to include single pages in the WordPress loop


    Tutorials for StudioPress Themes.

    October 20, 2018 at 1:36 am #223880
    Brad Dalton
    Participant

    Try this code in your child themes functions file.


    Tutorials for StudioPress Themes.

    October 21, 2018 at 12:17 am #223887
    iCantCU
    Member

    Thanks, Bradd! Can I edit the code so just the certain pages and no posts end up on the homepage?

    October 21, 2018 at 12:32 am #223888
    Brad Dalton
    Participant

    Sure, you can edit the code. Please refer to the pre_get_posts and WP_Query function documentation on the official WordPress Codex for more information.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2026 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