• 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

Where is the code that renders the home page of the Genesis Sample theme?

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 › Where is the code that renders the home page of the Genesis Sample theme?

This topic is: not resolved

Tagged: have_posts, the_post

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 7, 2017 at 9:49 pm #198985
    patrickr
    Member

    Can someone please point me to the code that renders the blog posts on the home page? Thanks!

    Cheers

    http://local
    January 8, 2017 at 4:11 am #198992
    Brad Dalton
    Participant

    Create a front-page.php file and add code to it.


    Tutorials for StudioPress Themes.

    January 8, 2017 at 7:25 pm #199036
    patrickr
    Member

    Thanks Brad, but my question was where is the current code that renders the homepage. I'm not interested in customizing the homepage, I'm just trying to find the loop that renders the posts on the homepage.

    Cheers

    January 9, 2017 at 3:10 am #199054
    Brad Dalton
    Participant

    The loop contains several functions included in the WordPress core which display the posts. See here

    Genesis contains several versions of the loop which use these WordPress functions in Genesis to display posts. You can see them in the genesis > lib > structure > loops.php file.

    They use the WordPress functions:

    if ( have_posts() ) : while ( have_posts() ) : the_post();

    You'll find the loop which displays the posts for Genesis in the loops.php file as it also adds hooks and markup to display the posts.

    have_posts()

    the_post()

    Both WordPress functions are located in the wp-includes/query.php file.


    Tutorials for StudioPress Themes.

    January 9, 2017 at 8:23 am #199053
    Brad Dalton
    Participant

    The loop contains several functions included in the WordPress core which display the posts. See here

    Genesis contains several versions of the loop which use these WordPress functions in Genesis to display posts. You can see them in the genesis > lib > structure > loops.php file.

    They use the WordPress functions:

    if ( have_posts() ) : while ( have_posts() ) : the_post();

    You'll find the loop which displays the posts for Genesis in the loops.php file as it also adds hooks and markup to display the posts.

    have_posts

    the_post

    Both WordPress functions are located in the wp-includes/query.php file.


    Tutorials for StudioPress Themes.

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

© 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