If your taxonomy is non-hierarchical like tags, change value of input to $term->name
. Took me a while to figure it out. It’s crazy but wordpress handle non-hierarchical taxonomies by their name in forms and not ids.
echo "<input type="radio" id='in-$id' name="{$name}"".checked($current,$term->term_id,false)."value="$term->name" />$term->name<br />";
Related Posts:
- Custom Taxonomy as checkbox or dropdown
- Get all taxonomies for all post types
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- How to make custom taxonomy into drop down select in a custom metabox
- Different Category system needed for the Custom Post Type
- Query custom post types & Taxonomies and list them in a table on a page
- Using page title as a link to term archive
- How to get post count of specific taxonomy that have store name & category
- Filter taxonomy by CPT
- Taxonomies are not showing in the category dropdown
- Custom Taxonomy – fields
- Add other all taxonomies as meta boxes to custom post type
- tax_query not working?
- Looping taxonomy in taxonomy?
- How to get all taxonomies of a post type?
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy as Dropdown in admin
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- How to filter out post type meta?
- How can I display my custom metaboxes on a custom post template?
- Relationship between two taxonomies and a custom post type [closed]
- Menu Multiple Taxonomies
- How to make a custom taxonomy selectable in post publish area?
- How to output wordpress custom tags separated by comma?
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- Get Post Primary Category
- How to check the terms in single custom post type template
- Weird problem happening with custom taxonmy when creating/updating posts
- get_terms showing all categories instead of the ones assigned to a specific post
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- How can I move a custom taxonomy and its data from one post type to another?
- Custom page template for category taxonomy
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Query Multiple Taxominies Across Multiple Post type’s
- Custom query to filter posts that have current post as a taxonomy [closed]
- How do I get array of types associated with a taxonomy?
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- get_posts of Custom Post Type AND Custom Taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- Received nothing after executing AJAX post function
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Push metadata in array
- Troubles with saving metabox
- Custom Taxonomies not appearing in Admin
- Get custom post type list for every category shortcode
- Custom Post Type Taxonomy Filters
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Custom Taxonomy back-end customizations
- Taxonomy custom post type URL
- How to Filter custom post type by taxonomy?
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Is it possible to have dedicated page for parent/child taxonomy?
- Get related posts of child term of custom post type
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- list taxonomies from a custom post type
- Display a grid of taxonomy terms at root taxonomy page
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- limit value taxonomy based on previous taxonomy value wordpress
- Metabox not show in categories custom post type cmb2
- Categorize custom post type
- How do I display the taxonomy for a custom post type in an array
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How do I display the grand child items of a taxonomy term?
- Taxonomies relations
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Suggested Post and Taxonomy structure
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- Adding custom taxonomy in same menu place with two custom post types
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- How to get list of taxonomy slugs ordered parents>childs?
- How do I share categories across multiple post types?
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- Ordering values entered in Custom Taxonomies
- Listing custom terms in custom post meta
- Permalinks: custom structure for taxonomy – tags?
- How can I move (or create another) publish button?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Add additional field to custom post_type
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view