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
- What does the token %1$s in WordPress represent [closed]
- retrieve thumbnail from post ID of best selling product in category
- Custom HTML structure in wp_list_categories
- 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]
- 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
- Error: array_map(): Argument #2
- Problems with function on function.php
- Use template for posts with a particular category grandparent
- Check if Product is in a Specific Category in Functions.php
- Styling images coming from another blog
- Display all categories including sub categories
- Custom category code not showing all posts
- 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
- How to use transient in this code for related post?
- Swapping wp_dropdown_categories function with wp_category_checklist
- Dynamic Sidebars & Echo
- What is an equivalent of single_cat_title for getting the slug of the category?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Move category description below post list in blog
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Let Users Choose Post Categories
- Generate sidebar depending on height of post
- Dilemma of Populating all the categories in a drop down list
- JSON REST API WordPress only showing first 10 categories
- Sidebar not appearing in footer, but it appears everywhere else!
- Get all categories post is not in
- Get latest post from all categories except one
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Only show size attributes in product box woocommerce when available
- Custom post type category not displaying category ID
- How to get current post category details inside “loop”?
- Post not populating for custom post type based on category selection
- Why the dynamic_sidebar() call is putted into an ul tag?
- is user member of a group, show them categories [closed]
- Showing Subcategory Name/Link Instead of Parent Category
- WordPress custom taxonomy
- Add a select-option to the default widgets
- Finding and removing duplicates within WP Arrays
- Using multiple variables to assign categories to an array
- Compare current post Category in select menu
- Get the list of post categories
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How to show categories and date on posts
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Allow two posts (from different categories) to have the same slug
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Retrieve the whole widget sidebar and pass it inside an html
- Category Page Displaying all Pages
- How to move a post from one category to another
- How to enable HTML tags in category description without breaking the category page
- Force Sidebar on Full Width page
- Trying to show the category of a post in the post display
- Create category after theme setup and modify the default one
- Link to index.php from home.php?
- Hide a specific category title from displaying on site
- Return to the beginning of the results of a for loop
- Blog Image and Title in Right Sidebar
- Populate Posts based on category selected using AJAX that means without page refresh
- random woocommerce categories are not showing when count enabled?
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- How to Retrieve All Category Images on Front-End
- Displaying 3 Category Posts differently
- Code works on page-example.php by not category-example.php
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- get_category display only 1
- WordPress using get_term to retreive slug not working as expected
- Front end post submissions do not get submitted in the category
- if conditional in sidebar plugin Password content shortcode
- Make an array listing custom taxonomy
- Get category id for a custom category and display it in a class
- Trying to exclude posts from a category on the home page
- Is there a way to randomize and connect a background and header image?
- wp_get_archive for category returning different URLs on different but similar sites
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- dynamically filter by category via sub-menu
- Listing current pages subp page in list items in the sidebar
- How to display different widgets on specific pages, hide from other pages
- Get unique post in parent category
- Sidebar doesnt get updated?
- Incomplete term slugs output from a foreach loop with get_the_terms
- Remove /category/ from category (archive) page URLs (without using a plugin)
- How to insert the first letter in uppercase [closed]
- How to limit number of posts in the certain category and exclude the oldest post automatically
- child category under correct parent
- Display featured posts first, then display all others within a specific category in WordPress
- Prevent publishing of uncategorized posts