Should be easy to do
(check the codex: wp dropdown categories)
<h2><?php _e('Categories:'); ?></h2>
<div>
<?php wp_dropdown_categories('show_option_all=ALL CATEGORIES&show_count=1&hierarchical=1'); ?>
</div>
p.s
if you want to wrap with translation this is the way:
<h2><?php _e('Categories:'); ?></h2>
<div>
<?php wp_dropdown_categories('show_option_all=".__("All Categories', 'your_text_domain').'&show_count=1&hierarchical=1'); ?>
</div>
Related Posts:
- Add custom field to Category
- Get all categories and posts in those categories
- Combine two taxonomies in a hierarchical tree
- Get current category details the user is currently on in category.php
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Get Default Post Category From Settings
- Get the number of posts in a named category, outside the loop
- Test if post has a category
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- Categories – create a new separate set right after the default?
- I want to order categories based upon the latest post time
- Highlight current category in wp_list_categories
- How to find all posts without category and assign the “Uncategorized”?
- How to Override default update_count_callback for category
- How to select product category while adding new product in woocommerce? [closed]
- WordPress previous_post_link exclude posts with multiple categories
- Is it possible to put tags and category information in the post as text?
- How do I count how many top level categories there are?
- display most popular tags of category?
- Exclude category from loop not working
- Is it possible to post with Word 2007 via XML-RPC and limit categories by user?
- how to get the categories for a single post in a hierarchical way
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- Getting categories id for all products in cart
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- Show Different Custom Menu on Different Category Pages
- Is there a cleaner way to get post count for a category in category.php?
- Show archives by year from just one category
- How to get the id from the custom category?
- Combining post categories and link categories?
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- WP didn’t redirect to canonical category URL
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- WP admin broken. Not saving catgories or adding categories to menu
- How to make the link to the category for a post go to corresponding page number in archive?
- How to build a simple nav system of custom post type categories and its posts?
- Set colors depending on category
- get_terms function not returning anything
- How to change amount of categories listed on dashboard?
- Remove “Browsed by Category” from Category Page
- How to display parents category and child category separately for a specific post?
- Get a count of how many times a term or a category is used in posts
- Exclude a category name using cat name
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Get custom title if category
- Apply WordPress function on specific woocommerce product categories only
- Post by category+author not working!
- Custom template for sub-sub-categories
- display specific category on page
- Simple way to style posts of a single category differently in the loop and in single
- show WordPress categories with different Structure
- How to remove the tilte “category:category name”?
- Media (images, videos, etc.) not showing on Category page
- Problem with Custom Post Type Categories
- Display post thumbnail for specific category outside the loop
- PHP dynamical conditional post display
- wp_dropdown_categories initial value
- Advanced permalinks structure
- Displaying categories in different template problem
- Subcategory Page URL to Display Only Posts from that Subcategory?
- How can I display image child category in parent
- Limit categories to hierarchal depth of 2
- Custom Taxonomy Isotope Grid – Filter Buttons Not Working
- Shop Category Pages missing s
- ADD DYNAMIC attribute for category to accordion
- Get_term_meta() does not work with pre_get_posts()
- Unable to add multiple categories to a post in WordPress
- How to display custom fields as table in Woocommerce
- make color of headline depend on category?
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Menu with category 2 category combined
- Some subcategories not working on custom portfolio sort
- Link For Portfolio Categories
- Displaying Category in sidebar post widget but not in the loop on home
- Create duplicate category page with content variations
- how to display categories for a specific post?
- Media Categories as Classes on WordPress Gallery Shortcode
- show posts found in multiple categories via category_name query string?
- Category Template for Custom Post Type
- Loop Through Categories in Custom Field
- get categories the post was in and just been removed from
- Loop through posts of CatA and store value of CatB in separate array
- Highlight posts that belong to current sub category
- Display last postings of 5 categories on homepage
- How to enable admins/editors to set a featured image for specific category?
- Category that can hold only specific number of post
- How to add the sidebar in all category page
- Problem with single posts not showing correct category sidebar
- Multiple Categories under one URL, where ‘Front Page’ is used already
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Having Trouble With get_category_by_slug In a Custom Function
- WordPress category gives 404 after moving to a different domain
- How to load/include category templates based on conditionals?
- Why does WordPress append a bullet to my category tag?
- how to implement next/prev within category archive?
- How to remove the category from the url only for a specific category of articles on wordpress