category page flow (bottom to top) is like this:
category-slug.php
category-ID.php
category.php
archive.php
index.php
so you can not create compulsory category.php. open your current theme archive.php. and edit this code.
<?php
if( !is_category() ){
get_sidebar();
}
?>
Related Posts:
- Where do posts get the sidebar from?
- How to list categories by page id in wordpress
- Display current category title on category page
- What does the token %1$s in WordPress represent [closed]
- Inject post (from specific category) between posts in Loop
- exclude multiple terms using get_terms() function
- Getting key value of WP_Term object in wordpress
- retrieve thumbnail from post ID of best selling product in category
- Custom HTML structure in wp_list_categories
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Allow authors to post only in categories they create in WordPress
- Archive listing of posts by publish year (multiple years)
- Add custom field to attachments in a specific category
- How to Remove Parents Category Permalink from Posts
- Display all posts in current category
- How to Populate the list of custom post type categories
- Php string not working in WordPress Functions.php [duplicate]
- Looking to exclude blog posts from category Previous/Next buttons
- List all categories but exclude current post category on single post page
- display most popular tags in two columns
- How to display related posts from parent category
- User Defined order on get_categories?
- How can I set custom order use this function
- Categories Template Assistance
- dynamic sidebar not showing anything
- Edit category output
- Error: array_map(): Argument #2
- Problems with function on function.php
- Use template for posts with a particular category grandparent
- Put a link to a category round a hard coded A HREF
- Check if Product is in a Specific Category in Functions.php
- Custom Loop through category menu to include sub categories
- Different background-image by category
- Styling images coming from another blog
- sidebar isn’t showing, what’s wrong w/ this code?
- Get posts with at least one category in common with current post?
- How to exclude specific category from the get_the_category(); array
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- Woocommerce – remove product from category
- Get category name from custom loop and echo it once
- Display all categories including sub categories
- WordPress widget/sidebar dividers?
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- Custom category code not showing all posts
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Category Thumbnail Display – How to display ONLY the main Category
- How to create a linked tag list in my sidebar
- Missing sidebar parameter “fix” – before_content
- hover image appears below placeholder instead of overlayed
- combine Code 1 with Code 2
- get current product name in functions.php
- get post based on category chosen in drop down – The ajax method
- How to use transient in this code for related post?
- Creating a related post section based on similar categories
- Swapping wp_dropdown_categories function with wp_category_checklist
- Proper syntax or method for keeping url in modified isotope / category links
- Filter Select results based on selection
- Dynamic Sidebars & Echo
- What is an equivalent of single_cat_title for getting the slug of the category?
- Issue adding sub category programmatically
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- how do I get a specific post from a post with a subcategory in WP
- WP grandchild categories in nested ul li
- Grab posts by multiple categories
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to show single category archive
- Move category description below post list in blog
- How to pick the default selected value in wordpress dropdown?
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Get page that displays all children of taxonomy parent
- selected option if current category is the value
- get_template_part based upon post’s category
- Child page menu in sidebar
- Theme developement – incative sidebars
- how to save selected option in variable for rest api category filter
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Hide subcategories (widget)
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Different post styles depending on category
- Display category name only once inside loop
- How to show only subcategories in parent category not parent category?
- Generate sidebar depending on height of post
- how to show only specific category for a template
- Dilemma of Populating all the categories in a drop down list
- if statement with is_active_sidebar()
- How to limit number of posts in the certain category and exclude the oldest post automatically
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Sidebars panel in customizer
- Exclude a category ID from the following function
- Count post with tags within one category?
- child category under correct parent
- Display featured posts first, then display all others within a specific category in WordPress
- Help with get_categories code
- Is it possible to go to the next post in the same category?
- Side bar only if it’s not a single post or a specific page
- Can’t assign menu parent id or menu item breaks
- Prevent publishing of uncategorized posts