So basically you want to use the category.php
for a particular post_type
‘s category, right ? I think you can make sure the thing like below-
if( 'your-main-blog-post-type' == get_post_type() ) {
// then show what I want
} else {
// don't
}
Use above logic in your category.php
and I hope you’ll get the solution you’re looking for.
Related Posts:
- Edit the markup of categories list
- How to get data about category in category.php
- editing fonts of category links from the_category() funtion
- Set a them for all subset of category
- Show posts from all categories
- altering theme – content generated by PAGES not PORTFOLIO
- How to get category and archive title?
- Display random categories on the front page (Finding and Editing Theme Functions)
- Check if current category has subcategories
- wp_nav_menu not appearing for a couple pages
- wp_update_nav_menu_item() to insert categories
- How to get the url to tag & category base set by the user?
- Multiple level category drop-down
- How to create a widgetized sidebar for every category dynamically?
- List Categories of the Parent Category of the Current Category
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- is_archive() content being shown instead of is_category()
- How do I make the category template display full posts instead of partial posts?
- Single_cat_title() print the title before text
- Retrieve all posts within tag OR category?
- New Theme creation
- How to add “Read More…” link in twentytwenty
- How to call custom category field data in theme?
- Different templates for different category tags
- Why category.php throw 404 in wordpress while calling paginate_links()?
- WP didn’t redirect to canonical category URL
- Custom Walker for wp_list_categories
- Woo Framework: woo_cat_featured not populating
- Inside a loop, how to change CSS class based on category name?
- How to do some action weekly?
- Question on using custom structures for categories
- Getting the category title / description returns first matching post?
- So my theme doesn’t have a category.php file
- Allow user to select categories that will display in post loop
- Insert HTML content in WP Query at specific point
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- Category page returns 404 error
- Theme for subcategories
- Theme modification for custom category menus
- Show post categories
- Add description to categories menu in admin
- filter a loop base on specific category
- Problem with multiple loops in wordpress theme
- How to add icon over specific thumb
- How to differentiate the homepage structure from the category page structure in WordPress template?
- How to detect /category and /tag base pages?
- List categories of a post hierarchically?
- WooCommerce shared categories
- Show the number of the post
- How to list posts from a sub-category that is listed in a parent category (more details below)?
- How can i add service category here? [duplicate]
- How do I remove “Uncategorized” from my theme on my posts page?
- Products category search not working
- In if…else condition, the else statement shows even if if statement is correct
- Can’t display posts by filtering categories using isotope.js
- Category page 404s on mobile but not desktop?
- Regarding Tags And Categories
- How to show some of category in wordpress
- Media Library Categories
- Style a category page the same way as the homepage?
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- Change single.php template based on parent category
- Jetpack Mobile Theme: when on smartphone on categories the theme suddenly changes to jetpack mobile theme even though it’s deactivated
- Choosing different templates for categories
- If it is a top level category show children otherwise show sibling categories
- Lowest catagory link
- Removing categories, Comments etc from posts?
- Include category name in page template
- How to get multiple loop in category.php, my scripts becomes madness
- Category base 404 – fix
- Category page with gallery for each post
- Custom built theme won’t filter categories
- Duplicate homepage to show posts from 1 category
- Category Archives: Show posts categorized in parent category only
- WordPress 3.5 how to determine if user is on category listing or category edit screen?
- Display only one level subcategory in wordpress
- How can i hide the authors box from a specific set of categories and post types?
- Get all first images of posts in same category
- How to display the category featured images [closed]
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- How to make /category/ URL load properly instead of 404 error?
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Categories list loop – add separator every year
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Filtering by Category doesnt paginate correctly on the backend
- Mod_Rewrite to show only last subcategory in URL
- wp_dropdown_categories() scripts working erratically on sidebar
- How to exclude the last post from a category(featured for example) from the main loop?
- get parent category only
- How to show only the name of one category above each posts in frontpage?
- Multiple categories for one menu item?
- Need help with major category and permalink re-organization
- how to get only grandchild category from a child category
- show posts in archive page based on selected catagory
- Get the categorie name of Event Organiser plugin [closed]
- Display the category name of a post that is in two different categories
- (WordPress) How to get custom taxonomy parent name?
- Search functionality with multiple categories
- Make a menu visible for a single category and it’s content