![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I would like to have a specific loop in each of my categories with different formatting. So, I must change the default genesis_standard_loop and replace it with the genesis_grid_loop through the functions.php.
function my_category_loop() { $grid_args = array( 'features' => 3, 'feature_image_size' => 'grid-thumbnail', '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, 'cat' => ???????? 'more' => __( '' ), 'posts_per_page' => 10 ); genesis_grid_loop( $grid_args ); } The problem is that I would like the 'cat' argument to be recognized dynamically according to the category page. It wouldn't be efficient to have one loop for each category page. How am I supposed to do that? |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us