Well, according to official documentation, you should pass depth argument inside your function.
As it’s written here
Try this:
<?php wp_list_categories( array(
'orderby'=> 'id',
'order' => 'DESC',
'show_count' => false,
'use_desc_for_title' => false,
'title_li' => '',
'depth; => 1
) ); ?>
Related Posts:
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Gutenberg editor add a custom category as wrapper for custom blocks
- Rewrite rule page url with category
- Different template for subcategories
- WP_Query not looking at child category
- Deleting default category in wordpress
- Excluding posts from a category but only if they’re not in multiple categories
- Most recent post from every category/taxonomy but sorted by date
- Category Archive, list subcategories of each post
- Disable pagination only for specific category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Script to duplicate categories as tags
- Check if post belongs to any category
- How to add categories to products in woocommerce programatically? [closed]
- How to sort categories by id in wordpress admin
- How to override Category rendering mechanism
- Remove Parent Category from Child Category URL
- Multisite – create a category in specific site
- How do you remove display of WooCommerce product category on single product page?
- Allow users to post to a certain category
- Show recent posts in menu?
- Do I have to use categories?
- get_the_category and echo out link to child-most/deepest category
- Categorising posts/pages into years published
- How can I duplicate categories and tags?
- Convert the default sub-category dashes to bullets or any other characters
- Display category description instead of “nothing found” page
- Subcategories with the same name
- Link Attachment Image to Category
- Modify WordPress SQL Query to pull from within a category
- How can i insert term in a specific language of Polylang?
- How to retrieve more posts from a custom post type that are in the same category as the current post
- posts_nav_link(); picks up index.php instead of category.php as template
- Category name field strips HTML tags. How can I reverse this?
- Same base for category and post
- Get all media categories
- Custom taxonomy/category order
- Custom SQL Query: Get all posts with category id and a concated list of tags on each post
- Add tag parameter to category.php
- Check IF category_description exists
- I want to show category name when using [category] shortcode
- Category list with postcount
- What Must to Display the “mysite.com/category” URL?
- How to display product with two condition, category and brand taxonomy
- List recent posts with link to first category
- How do I add a category to my post_type
- Link from navbar to categories
- WordPress showing wrong category name
- Add posts of a certain category to a page
- How can I filter posts by tag on the fly
- Post Loop Category first show parent then child
- Category List and Automatic jQuery classes
- How to add a custom thumbnail size for a specific category?
- wp_nav_menu not appearing correctly on category page
- Post not found when filtered by category ID
- Show posts from category specified using a custom field
- Custom menu with categories and tags
- How to Show or Hidden Categories on page in WordPress?
- excude a specidic category from showing in the “relative posts”
- Show posts from a single category by default using wordpress.com
- Filtering blog posts by category
- category description not showing in my woocommerce
- Hide Some Categories in Post Editor
- Programmatically Create Category and sub Category and sub sub Category
- Parent Category and Subcategory default text generated with category
- How to create a table with counts of category combinations?
- How to get the_category(‘, ‘) with link “title” attribute
- product_cat image url from database
- How to test if the post is in a primary category
- How to get the term id inside the start lvl method of category walker?
- Multiple if statements with else for get_the_category [closed]
- Most efficient way to display current post subcategories?
- Using a template page parent breaks page
- How to Query the Top 5 Posts of a specific category?
- Setting category for post as default
- How to add a post with new Taxonomy without assigning to default category?
- Query post only from categories that have subcategories
- How to get the link of all categories
- Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category
- foreach,having wp_query inside, breaks after showing one result
- Display a category name automatically using code in the functions.php file
- How to create default categories in new installs?
- Check if value is a custom taxonomy category name
- Tracking multiple tags or categories
- 2 loops in archive.php (one for each category)
- How to load jquery tag-it plugin into admin?
- Include Category Description in search result
- not empty categories don’t show in menu [closed]
- How do I add and display a custom image field to a category? [duplicate]
- Show parent-child relationship for categories in the wordpress admin
- How to assign different categories to pages in wordpress?
- Add category image before post title on homepage
- All post of child category not in top category
- How to add a tag above a category post that displays the category name in WordPress
- Woocommerce – Display product category of product in Orders page
- How to show video from wp option value?
- Changing Woocommerce categories programatically
- How to link ACF relationship field to the new Query block in Full Site Editing
- Order Categories by Character Count
- How to remove the category from the url only for a specific category of articles on wordpress