Getting category ID for active category
-
I’m using the shortcode in my Category Template (category.php)
The code I’m using at the moment is:
<?php echo do_shortcode( ‘[thumbnailgrid cat=”11″ posts=”12″ type=”post” order_by=”date” order=”ASC”]’ ); ?>
And it looks great so thank you!
Is there any way of setting ‘cat=’ to the active category page. Maybe by using get_the_category()?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Getting category ID for active category’ is closed to new replies.