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 to check if I’m on the last page of posts?
- Should category.php and The Loop be used if the query needs to be customizable?
- Inject post (from specific category) between posts in Loop
- Exclude the category from the WordPress loop
- How do I get the category URL from get_the_category?
- get_field not displaying my custom field value
- Default WP Gallery – show only galleries of a certain category
- Query Posts Exclude Entire Category
- query in category.php repeats itself
- Class active for Archive link – looped out
- Taxonomy name repeating when showing 2 posts from each category
- Display the last post by each category?
- 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
- Multiple Loops on category.php with pagination on last loop
- How to exclude the last post from a category(featured for example) from the main loop?
- Order by category titles
- Woo Framework: woo_cat_featured not populating
- ajax for filtering posts by category in wordpress loops
- Inside a loop, how to change CSS class based on category name?
- 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
- Different Output for “Every Other” Foreach Statement?
- Limit get_categories to show each category once
- Display single category name in woocommerce loop
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Show Posts from Single Category Not Working
- Is there a reason I cannot get the current category in a loop?
- Category archive is displaying all posts rather than the specific category
- Pagination on category.php and tag.php not working
- new WP_Query all post in a category inside the loop
- Trying to get variables in hacked category dropdown
- How do I remove a category from a wordpress loop>
- Problem with different query loops (and “main loop”) on category template page!
- How to do paging in the loop?
- How to add orderby parameter for sorting on category.php
- category__not_in and id values from variable
- How to get the last category name of a child category?
- How to loop custom post_type from (a) specific category(ies)?
- Do not show sub categories in the loop on archive-product.php
- How to display the parent category if only the child category has been chosen
- Category tags with comma’s
- How to get current post category details inside “loop”?
- Display posts of certain categories to specific user roles
- Allow user to select categories that will display in post loop
- Problem with custom loop and wp_list_pluck [closed]
- Insert HTML content in WP Query at specific point
- Echoing a CSS class based on category of post in a list
- Do not duplicate posts with multiple categories in multiple loops
- Simple way to style posts of a single category differently in the loop and in single
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- Getting the Most Recent Posts from Multiple Categories
- Display subcategories in dropdown
- Display category title and three latest post inside the category
- More efficient way to list posts by category [duplicate]
- Exclude category from foreach loop
- Have posts that belong to multiple categories, exclude some categories from homepage
- Category nicename inside loop in wordpress
- Show multiple categories in query using redux framework variable
- Get the ID of the current post’s child category
- filter a loop base on specific category
- Problem with multiple loops in wordpress theme
- multiple values in an array for category__and does not work with WP_Query
- Limit Loop to One Category
- Display post thumbnail for specific category outside the loop
- List post only under the category, exclude child category content
- Filter Category Loop Dynamically
- Editing Loop So It Targets Specific Tags?
- Show posted on date only for posts in a certain category
- 2 loops in archive.php (one for each category)
- My Query is getting the wrong data
- Detecting top parent category fails on home page
- Paginating a list of all posts collected by category titles
- Remove the_content From Loop
- How do i add custom post types to this query?
- Using pagination with multiple loops causes it to break
- Custom loop by url
- Custom WordPress category page showing all posts rather than the specified category
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- how to edit wp category widget
- Call Current Category
- Page permalink rewrite
- 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
- Do not show all post from all categories, just show posts from category in current loop
- IF have_posts contains posts from a certain category
- Echo Category In Loop
- How can I implement pagination on custom category page?
- Order Categories by Character Count
- Get categories by title descendant
- Elementor : display only one category in loop grid
- Different number of posts in regular loop and CPT category page