Since in most cases I would need to now the ‘taxonomy’, one work around I found (actually, pointe by @Howdy_McGee) was to pass the slug of the term and it’s parent to the value, and then split-string.
Here is my final code:
foreach ($tax_categorias as $tax_categoria) {
echo '<option value=". $tax_categoria->slug .".'. $tax_categoria->taxonomy .'' . $selected . '>' . $tax_categoria->name . '</option>';
}
$ads_cat = $_GET['ads_filt_categorias'];
$list($ads_filt_categorias,$ads_categorias) = explode('.', $ads_cat);
Related Posts:
- List taxonomy / category count showing list published posts only
- Get pages only with a specific taxonomy
- Taxonomy archive showing no results
- how do you pull data from two taxonomies?
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Advanced AND tax_query in sidebar with 2 taxonomies
- wp_get_object_terms count on taxonomies within an category archive
- How to add images to taxonomies?
- Can you add the visual editor to the description field for custom taxonomies?
- Check if a post has any term in this custom taxonomy?
- Custom Taxonomy and Tax_Query
- Custom taxonomy hide meta box but show in menu
- display posts with same taxonomy term
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Remove Category description textarea
- Archive template for taxonomy terms
- How can I set up a category “overview” page?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Possible to register multiple custom taxonomies in one function?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- why do drafts return as part of wp_query?
- Function to limit the number of posts in taxonomy.php
- Dynamically tax_query terms
- WP Query with custom taxonomy
- How to prevent posts duplicating when viewing a custom taxonomy term
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Sorting taxonomy columns by meta value numeric
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- Custom taxonomy query not working with switch_to_blog
- Is it possible to create exclusive custom taxonomy?
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- Get Current Custom Taxonomy ID by Post ID
- ‘wp’ action hook not firing in admin and login?
- Autogenerate Front End Form Field With jQuery
- Changing taxonomy term by slug (wp_update_term)
- Taxonomy template shows only 10 posts
- How to Filter custom post type by taxonomy?
- Rewrite Rule Working for all but one of the taxonomies created
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- How do I display the grand child items of a taxonomy term?
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- woocommerce custom product category template
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- Multi-select field for Taxonomy can’t save the value
- How to create a custom taxonomy using a shortcode?
- Get the taxonomy of the post
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- tax_query not working
- Get object for a few selected taxonomies
- Loop through custom taxanomy in post and display custom fields from posts
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Dropdown taxonomy lists in admin menu
- Taxonomy archive template that shows posts from more than one taxonomy
- How to get the term description in a taxonomy term archive query?
- How to define %category% for custom taxonomies?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- new custom filed not showing in taxonomy
- How do I get the correct URL?
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- Dropdown (with onChange) with custom taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- Ignore punctuation marks in taxonomy order by name
- How to use two same taxonomy in same post differently?
- How can I get all the posts that are related with a specific taxonomy term?
- Resize $term attachment using url
- Custom taxonomy escaping html attr
- switch statement for taxonomy content
- How do you search for a post by custom taxonomy?
- Display taxonomy term slugs
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Index page of posts tagged with two separate taxonomies
- Tax query array terms display out of order
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- create taxonomy
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- What is the current page’s Taxonomy?
- Get custom taxonomy term url on archive page
- Display woocommerce product_cat child terms with thumbnails
- query grandchildren taxonomy terms
- Adding new terms to custom taxonomy
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?