I did! Write this codes in functions.php
add_filter( 'widget_categories_args', 'force_widget_cat_args' );
function force_widget_cat_args($cat_args) {
$cat_args['hierarchical'] = 0;
return $cat_args;
}
Related Posts:
- Using wp_category_checklist in a widget
- How to remove the parentheses from the category widget
- How to create a widgetized sidebar for every category dynamically?
- Customizing Default Categories Widget
- Display all posts with same title
- I want to create a posts widget and be able to select categories
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- Categories lose hierarchy order once assigned to post
- Add Icons to the Product Category Sidebar Widget WooCommerce
- How to display widgets inside a page content without a plugin?
- How do you categorize pages?
- WordPress category widget only show categories with children
- Customize WordPress widget – Product Category
- Post Count for Categories, however not to calculate a total
- How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?
- Categories widget show empty?
- Is it possible to remove from default category widget?
- how to remove the default title of Categories widget
- How to show 5 posts from specific category on related page?
- display a widget on specific category and its sub categories
- Multiple selection for wordpress widget
- How to not display subcategories in Recent Posts widget area?
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- Tags Instead of Category
- How to hide widget from certain category
- Last x Posted Categories?
- WordPress category filters as subcategories
- exclude certain categories form archive widget
- Conditional widget for theme template file
- Add filter for specific category only
- Exclude a category from block editor’s category widget
- How can I display the category name in the single post when using WP Blog and Widget?
- How to Change Sort Order of default WordPress Catgory Widgets?
- How to add an “All” category to the tag cloud?
- Custom file with special code of category widget
- in_category(‘category-sluga’) returns true for Archive page of Category ‘category-slugb’
- Problem with single posts not showing correct category sidebar
- single category widget with conditional terms
- Customize category query in widget
- Allow users to create their own feed from selected categories?
- How to list child categories in custom category template?
- Are Custom Taxonomy Templates Possible?
- Remove Categories and Tags from Admin Dashboard
- Using widget logic I want to show only a widget on the archive page if there are no posts
- Show all posts of sub category in a page like: foo.com/category/subcategory/ using UNCODE Theme
- Replace category titles
- 403 forbidden on one page only
- Show recent posts from one category on a non-WP site
- Multiple Category Search
- I want to display posts common in 3 categories [closed]
- Displaying just one new/current post per category in homepage
- How do I share categories across selected sites in a Multisite setup
- Show popular post by category code
- Order by category titles
- How to let users choose posts order in categories?
- WordPress category
- And/Or Category Query
- Show subcategories on a parent category page
- How do I add Category Body Classes to Admin?
- Category archive is displaying all posts rather than the specific category
- Use the category name instead of category slug in permalinks
- How can I display the number of post associated to a category in Twig/Timber WordPress? [closed]
- How to display the parent category if only the child category has been chosen
- Multiple Category Search with and operator in WordPress
- get_posts() from parent category only using a shortcode
- Different CSS class by category
- Remove any product that is featured from regular display loop [WooCommerce]
- How the posts and categories connected each other in wp 4.1.1?
- How to restrict the amount of categories/post tags/terms for a post type post
- Ordering categories by slug vs. name
- Using in ‘category_name’ in ‘$query->set();’?
- Homepage custom recent news
- post_class remove tag- or category- from slug
- creating categories programmatically
- Pagination for a category
- What is the best way to add an advanced / intermediate / beginner tag to a post
- WP-CLI Add category as menu item main-menu
- Can’t get selected value from wp_dropdown_categories or get_categories
- How to get specific (grand parent) category of current post?
- Blog page with posts from specific categories
- How to remove parent category from child category url using wordpress rewrite rule?
- loop in single.php of the same category
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- outputting taxonomy hierarchy
- Make category archives page in menu non-clickable
- Exclude specific Categories from displaying on post but not in lists
- Search by tag, category and author without plugin
- How to show posts only for the last subcategory?
- Create monthly archive for parent category
- Different styles for categories – need to edit a plugin
- Unable to get all tags from specific categories
- Hide all posts by an author
- How to display post title and link within wp_list_categories()
- How to remove title from category page in header
- Rewrite category list as an if / else statement
- Displaying just one post from each category on archive page
- Exclude categories from homepage but not from sidebar
- Exclude Specific Categories?
- how do I exclude a category foreach
- Trouble Fetching Posts Using WordPress API: No Response from Specific Category