• 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

ramesh85

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 16, 2017 at 11:37 pm in reply to: custom blog template for home page #212593
    ramesh85
    Member

    hi could you please check? i have updated my custom code and setting screenshots.

    thank you

    October 15, 2017 at 8:32 am in reply to: custom blog template for home page #212447
    ramesh85
    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();

    ?>

    *******************************************************

    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 11, 2017 at 11:23 pm in reply to: custom blog template for home page #212453
    ramesh85
    Member

    Let me know why?

    October 11, 2017 at 11:22 pm in reply to: custom blog template for home page #212452
    ramesh85
    Member

    My custom code :

    http://www.bargainblessings.com/wp-content/uploads/2017/10/mycode.png

    and i created a new page called 'New' and i assigned this blog template there
    link : https://www.bargainblessings.com/new/
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-3.png

    there you can see all posts are displaying

    but when i try to make that new page as a home page using "Reading Settings" home page gone blank
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-1.png
    http://www.bargainblessings.com/wp-content/uploads/2017/10/1-2.png

    October 11, 2017 at 11:03 pm in reply to: custom blog template for home page #212448
    ramesh85
    Member

    hi can you please check my replies ?

    October 11, 2017 at 9:48 pm in reply to: custom blog template for home page #212446
    ramesh85
    Member

    hi ,
    thank you for your quick reply, i have attached screenshots links here :
    example site : http://hip2save.com/

    http://www.bargainblessings.com/wp-content/uploads/2017/10/layout.png
    http://www.bargainblessings.com/wp-content/uploads/2017/10/grid-view.png
    http://www.bargainblessings.com/wp-content/uploads/2017/10/list-view.png

    i am looking for this layout to my genesis theme. let me know the code parts?

    thank you

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

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