• 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

set home page for blog template

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 › set home page for blog template

This topic is: not resolved

Tagged: custom template, front page

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by Brad Dalton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 17, 2017 at 2:04 am #212594
    slbpo2017
    Member

    i created a page name called New and i assign this template for new page :
    https://www.bargainblessings.com/new/ (you can see posts are displaying there)
    screenshot 1:
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-3.png

    but when i select this new page as a home in Reading Settings section these post are not displaying there.
    screenshot 1:
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-1.png

    screenshot 2:
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-2.png

    let me know why custom blog template not working on home page ?

    October 17, 2017 at 2:04 am #212595
    slbpo2017
    Member

    My code Part for blog template:

    <?php

    /**
    * Template Name: Blog Template
    * Description: Used as a page template to show page contents, followed by a loop
    * through the "Genesis Office Hours" category
    */

    // Add our custom loop
    add_action( 'genesis_loop', 'cd_goh_loop' );

    function cd_goh_loop() {

    $args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'orderby' => 'menu_order');

    $loop = new WP_Query( $args );
    if( $loop->have_posts() ) {

    // loop through posts
    while( $loop->have_posts() ): $loop->the_post();

    $video_id = esc_attr( genesis_get_custom_field( 'cd_youtube_id' ) );
    $video_thumbnail = '';
    $video_link = 'http://www.youtube.com/watch?v=' . $video_id;

    echo '<div class="one-third first">';
    echo '' . $video_thumbnail . '';
    echo '</div>';
    echo '<div class="two-thirds">';
    echo '<h4>' . get_the_title() . '</h4>';
    echo '<p>' . get_the_date() . '</p>';
    echo '<p>Watch It | Show Notes</p>';
    echo '</div>';

    endwhile;
    }

    wp_reset_postdata();

    }

    genesis();

    ?>

    October 17, 2017 at 2:11 am #212597
    Brad Dalton
    Participant

    Hard to help with PHP unless you paste it into a Gist so it can be tested however :

    Try renaming the file front-page.php if you want to use the template on the front page. This uses the WordPress Template Hierarchy.


    Tutorials for StudioPress Themes.

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