Found the solution! 🙂
$taxonomies = array(CUSTOM_CAT_TYPE);
foreach($taxonomies as $tax)
{
$args = array(
'orderby' => 'name',
'show_count' => 1,
'pad_counts' => 1,
'hierarchical' => 1,
'hide_empty' => 0,
'taxonomy' => $tax,
);
wp_dropdown_categories( $args );
}
Thanks for helping out!
Related Posts:
- Counter in loop in foreach
- How can I modify this code to iterate over an array of categories?
- Get the children of the parent category
- How do I get the category URL from get_the_category?
- Default WP Gallery – show only galleries of a certain category
- Rearranging posts based on categories
- WP_Query not looking at child category
- Randomise results from a category page?
- Display all posts in category, with specific tag posts at top
- Display list of Sub-Categories and the posts they contain, within one main Category
- Remove child products from woocommerce category page [closed]
- Get a list of commas separated categories inside a loop
- User Defined order on get_categories?
- Check if post belongs to any category
- How do I display the posts from a custom post type on a category.php page?
- How to group the loop posts in a particular by author?
- Exclude category from loop not working
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- If newest post of category is newest post in general, skip first post of category
- Code to pull in a PHP file named after the category ID
- in_category() works in single.php but not in page.php?
- Why would in_category only return one post in a specific category?
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- Show only one category
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- Taxonomy filter all children
- Displaying multiple loops based off of category
- Redirect category to url with /category
- Enter a variable in the ‘category_name’ parameter
- how to define category loop last class in the third
- Query Posts Exclude Entire Category
- query in category.php repeats itself
- Remove product category placeholder image (Woocomerce)
- WooCommerce – How to show specific category first-rest of products-specific category last
- Alert Bar section within WP loop is displaying even though there are no posts
- Display category name only once inside loop
- Woo Framework: woo_cat_featured not populating
- Exclude current post from loop
- How to insert category list into post creation page, and retrieve chosen categories?
- Categories list loop – add separator every 3 categories [closed]
- Create menu locations for each category in wordpress
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Pagination on category.php and tag.php not working
- Trying to get variables in hacked category dropdown
- How do I remove a category from a wordpress loop>
- How to do paging in the loop?
- category__not_in and id values from variable
- How to get the last category name of a child category?
- Do not show sub categories in the loop on archive-product.php
- Problem with custom loop and wp_list_pluck [closed]
- Insert HTML content in WP Query at specific point
- Simple way to style posts of a single category differently in the loop and in single
- Getting the Most Recent Posts from Multiple Categories
- Have posts that belong to multiple categories, exclude some categories from homepage
- Show multiple categories in query using redux framework variable
- Get the ID of the current post’s child category
- multiple values in an array for category__and does not work with WP_Query
- Display post thumbnail for specific category outside the loop
- List post only under the category, exclude child category content
- the_category() doesn’t working in wp_query loop
- Conditional category query breaking?
- How to get posts using category slug in ClassiPress?
- Category sticky latest
- Explode() expects a string
- Show the categories the current post has
- Exclude posts without category from loop
- Show the number of the post
- How can I order all subcategories alphabetical independent of the parent categories?
- Template category.php with page (no posts)
- How to create a category loop on my blog (ACF Plugin)
- Multiple if statements with else for get_the_category [closed]
- Displaying Category in sidebar post widget but not in the loop on home
- Querying posts from two different categories while looping inside another loop
- How to add Pagination to foreach loop to page
- Loop doesn’t work
- How to loop through a custom field for each post, & display?
- show category name before first posts in each category
- Loop within category’s posts
- Display one post on category.php: Wrong featured image
- foreach,having wp_query inside, breaks after showing one result
- Category foreach Paging
- Loop through posts of CatA and store value of CatB in separate array
- How to add an empty entry to masonry?
- WordPress Numeric Pagination with Query String [duplicate]
- Loops in category description
- Several loop in search result
- Printing direct descendants of a category with WP_Query
- Category slug in in loop always the same?
- how to get number of posts in a category on a specific date
- Show posted on date only for posts in a certain category
- 2 loops in archive.php (one for each category)
- Detecting top parent category fails on home page
- Using pagination with multiple loops causes it to break
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- Call Current Category
- How to create a custom loop ordered by Categories on a Page Template?
- Post thats in Two Categories, only want to display name for one
- How can I implement pagination on custom category page?
- Order Categories by Character Count
- Get categories by title descendant