• 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

Aticus21

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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 26, 2014 at 11:00 am in reply to: Need help creating a 3 column grid. #87104
    Aticus21
    Member

    So I was looking at your solution and came across this. - http://wpsmith.net/2013/genesis/genesis-grid-loop-in-genesis-1-9/
    Now from that my understanding is that I have to add.

    if ( function_exists( 'genesis_grid_loop' ) ) {
    	genesis_grid_loop(
    		array(
    			'features'              => 0,
    			'feature_image_size'    => 0,
    			'feature_image_class'   => 'alignright post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 'thumbnail',
    			'grid_image_class'      => 'alignleft',
    			'grid_content_limit'    => 250,
    			'more'                  => __( '[Read more...]', 'child-domain' ),
    		) 
    	);
    } else {
    	genesis_standard_loop();
    }
    

    to my home.php Correct?

    Also I have to add

    <?php
     
    add_action( 'pre_get_posts', 'wps_include_cat_in_grid' );
    /**
     * Limit Query to one Category
     * 
     * @author Bill Erickson
     * @author Travis Smith
     * @link http://www.billerickson.net/customize-the-wordpress-query/
     * @link http://wpsmith.net/2013/genesis/genesis-grid-loop-in-genesis-1-9/
     * @param object $query WP Query data
     *
     */
    function wps_include_cat_in_grid( $query ) {
      
      if( $query->is_main_query() && wps_is_doing_grid_loop() ) {
    		$query->set( 'cat', '4' );
    	}
     
    }

    to my functions.php correct?

    If I wanted to add the code above into lets say grid.php to keep my functions.php clean do I need to do anything else for WP to find the code?

    January 25, 2014 at 4:22 pm in reply to: Need help creating a 3 column grid. #87001
    Aticus21
    Member

    The grid loop plug in works great but my only issue with it is how would I make my home page display only one category? Is there a way to make a category page a home page?

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

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