Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
Aticus21Member
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?
Aticus21MemberThe 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?
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)