Custom category pages

Hi,
I recently got some help with this here…

It explains how the customization works but I don’t understand how to limit my customization to a specific category. I can see the post type php files to edit (content-video.php) but where and how to I limit my child theme php files to a specific category.

My goal is to insert a grid from “The Grid” into a category page instead of the Pro masonry grid. If this is just a matter of putting the code on every post type page then that is fine.
Thanks!

Hello @clefler,

Thanks for asking. :slight_smile:

To limit your changes for a specific category, you need to use Conditional statements. Please refer following documentations to learn more about Conditional statements:

https://codex.wordpress.org/Conditional_Tags#A_Category_Page


Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.