Don’t Worry, You’re In The Right Place
A lot of these posts were originally on SureFireWebServices.com. So if you found them through search engines or clicking around, this is their new home :). Enjoy!
0

How to pull posts from a category on the grid loop – Genesis Framework

This is for the Genesis Framework only =).

Simply add the following code to your loop:

[code]’cat’ => x[/code]

Where ‘x’ is the number of the category you’d like to use.

Sample Code:

[code highlight=”11″]
function child_grid_loop_cat_six() {
$grid_args = array(
‘features’ => 0,
‘feature_image_size’ => 0,
‘feature_image_class’ => ‘alignleft post-image’,
‘feature_content_limit’ => 0,
‘grid_image_size’ => ‘grid-thumbnail’,
‘grid_image_class’ => ‘alignleft post-image’,
‘grid_content_limit’ => 0,
‘more’ => __( ‘Continue reading →’, ‘genesis’ ),
‘cat’ => 6,
‘posts_per_page’ => 6
);

genesis_grid_loop( $grid_args );
}
[/code]

Advertisement
About the Author
What's UP! This is my site, I write 99% of the articles on here. I'm also the owner of SureFireWebServices.com. I help out a lot of developers and designers getting into the web game. Helping is fun for me, so feel free to ask me any questions! I've made courses and have a membership as well to help get you on your feet!

0 comments on How to pull posts from a category on the grid loop – Genesis Framework

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top