Reply To: Show posts in a certain category | WP Masonry Layout

Reply To: Show posts in a certain category

Home Forums Pro Version Show posts in a certain category Reply To: Show posts in a certain category

#751
Masonry Guy
Keymaster

Hi Loftur,

Ya, it can be done but it will be little tricky. Here is how you can do it.

1. Create a shortcode for your category.
2. Copy category.php and rename it to category-{YOUR_CATEGORY_SLUG}.php
3. In category-{YOUR_CATEGORY_SLUG}.php, please keep the shortcode. You should keep this shortcode like this in php file
<?php echo do_shortcode('SHORTCODE HERE'); ?>