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
- how to show only specific category for a template
- if statement with is_active_sidebar()
- Display most popular posts of category
- get taxonomy thumbnail and use it as a variable in code
- Displaying posts based on category
- Get categories names as an array to use it in theme settings
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- How to get the last category name of a child category?
- How to remove sidebar primary widget on Mobile on category page [closed]
- Use get() method to grab all categories and output inside another method
- Only show size attributes in product box woocommerce when available
- Argument for if term-> have child?
- How to separate categories with commas?
- Show all tags within a category?
- Displaying list of posts in category page
- Echoing a CSS class based on category of post in a list
- Alphabetically Ordered Category in WordPress
- Loading Posts & Category with Ajax
- How to get current category
- WooCommerce: Display product categories to make IF statement
- Trying To Get Child Categories To Show, Issue With foreach Loop
- Show parent categories of the current category
- is user member of a group, show them categories [closed]
- How to check if a category has a parent and child categories?
- Add a select-option to the default widgets
- Using multiple variables to assign categories to an array
- Get category id when SEO URL is turned on
- Don’t display a sidebar widget when on a specific page
- Display latest post from WordPress Featured Category that is also in X,Y,or Z categories
- Display Sibling WooCommerce Product Categories on Archive Page
- Pagination at category doesnt work with same name of page
- display the months of a specific category
- Add Custom Category Description When Empty
- Add a product category to a specific product via a button
- List sub categories and corresponding posts of a parent category
- Dropdown category field inside repeatable metabox
- Child-Theme Category View with modified permalinks (%category% removed)
- How to move a post from one category to another
- Create category after theme setup and modify the default one
- How to Link to category titles if it is in the single post content?
- How can i show specific Category List?
- How to show category just on specific pages?
- How to filter specific element of an array in wordpress/php?
- All categories options or All categories not Populating
- Displaying 3 Category Posts differently
- What image is this pulling?
- List categories assigned to a post
- Unable to get Post Category Name and URL
- Adding a sidebar to wp-login.php
- WordPress using get_term to retreive slug not working as expected
- How to add style in functions.php depending on conditions?
- Showing the project type in HREF
- How do I display Category titles on a WP Page?
- Front end post submissions do not get submitted in the category
- problem with category menu, it doesn’t want to show link
- Saving category as insert post
- Trying to exclude posts from a category on the home page
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- get_category only returning details for ‘uncategorized’
- Hide empty categories from get_categories
- on category page get name of category as a string
- WordPress categories not working throughout site
- Remove /category/ from category (archive) page URLs (without using a plugin)
- How to create categories out of a list of words?
- Get Products within Current Product Category
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)