In $args you are using
'child_of'=>5,
why are you using this and if you are using this parameter you should set
hide_empty => 0
Related Posts:
- How do I get the category URL from get_the_category?
- How do I use the same post slug for different Categories?
- Rewrite rule page url with category
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- Rewrite category slug
- Using same slug name for a page and category
- Add category to custom post type automatically, using category slug
- I use same slug name for category and page
- Divi change project slug based on category
- Removing the number in a category slug
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Plural Category Base Slug On Category Archive Page
- Return category slug / title from category ID
- Duplicate Category and Page URL loads Category instead of the Page
- Category slug $_SERVER[‘REQUEST_URI’];
- 403 forbidden on one page only
- Get the name an the description of a link category
- Using a portfolio_category slug in wordpress URL
- Categories vs. Page Site Organization
- WooCommerce duplicate sub categories and product slugs
- Need to pull parent category and slug – only pulling daughter category
- Pagination for category slug returns 404 when page >= 2
- Displaying a full post instead of a slug per category?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- The default code for “posts_nav_link” on category.php isn’t working
- Mod_Rewrite to show only last subcategory in URL
- Get posts from specific taxonomy term
- how to get full category path including parent and subcategories
- Automatically redirect a page to a category that share the same slug
- Use the category name instead of category slug in permalinks
- How do I add a tag slug to a category URL to filter posts?
- Change of category structure will cause two kinds of URLs for one post
- Change slug of Standard wp Post category
- How to remove the category from post slug
- Echo Category Nicename
- pagination 404 error, same slug home and categories
- Different post slug based on archive
- A different permalink structure for different categories
- OK to redirect the root WordPress category slug?
- How Can I Use Equal And Question Mark In Category Slug?
- How to remove category name for only one category?
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Include a page’s “category” in its URL
- Using the slug of a custom post category as prefix for the underlying custom post slugs
- Change the full slug for a specific category?
- Get category from slug list
- How to auto update post title and slug with category name when post status is updated
- Hide category name using mod_rewrite
- Show only one of the categories of a post in the breadcrumb?
- hierarchical taxonomy in permalinks? using same slug
- woocommerce – products by category slug? [closed]
- Category slug in in loop always the same?
- How can I get rid of the the category suffix–NOT “prefix” (i.e. foo-1, foo-2, etc)
- How to get category slug link? ( include parent categories)
- How to add custom prefix before category base for category page URL?
- category id (term_id) in url instead of slug
- Using same term for slug and category
- How To Get Parent Category Slug of Current Post
- Best Way to Redirect Category to Page and Hide Category
- is_category() in pre_get_posts strange error
- How to get posts from two categories with WP_Query?
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- Loop with Dynamic Categories
- Automatically select categories on new post based on GET value
- So how to redirect category to a page of the same name if it exists?
- I want to create a posts widget and be able to select categories
- get only sub category ID
- Display categories inline
- Get tags specific category
- show posts names and links in the sidebar list as categories child
- Add a specific category at a specific place to the menu that uses wp_list_pages
- Filter posts under multiple categories?
- Categories not working – 404 Not found error
- How to not treat categories as tags in feeds
- How to show Sub Categories on Categories page?
- How would I go about pulling the most popular (most used) categories?
- New Theme creation
- Custom order categories in admin dashboard
- multiple categories and breadcrumbs problem
- Editing Category Pages
- List subcategories of a specific product category (adapting from posts to products taxonomy)
- Get all subcategories and related posts
- How to get data about category in category.php
- Display tags from specific category in select fields
- Offline WordPress Application
- woocommerce product category tabs [closed]
- Taxonomy name repeating when showing 2 posts from each category
- How to change category and year archive permalinks/rewrite rules?
- The Category page shows all the posts, without differentiating by categories
- New Categories Not Shown In the Post Edit Page
- Different templates for different category tags
- Category param redirect to post type archive
- batch adding posts to a category based on matching regex for title with SQL
- Place category Base URL at the end
- Display Posts Loop for each parent and for each Child
- Listing Texts of Which Custom Field is Null
- How to set a filter by category within a customised page
- Post Count for Categories, however not to calculate a total