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 completely disable a taxonomy archive on the frontend?
- Unable to save custom taxonomy terms in a custom-built metabox
- How to get a list of term names of the custom post type im currently on in single.php
- How to show term-specific post list, without posts associated with child terms?
- Query multiple taxonomy in Custom Post Type
- Remove “-2” from a Toolset Types URL with the same post name
- Custom post type taxonomy template
- Show ACF field from custom taxonomy and display on the single template
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Taxonomy Templates
- Custom Post Type and Taxonomy combination
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- How can I display my custom metaboxes on a custom post template?
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Get Post Primary Category
- How to check the terms in single custom post type template
- 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?
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- Push metadata in array
- Get custom post type list for every category shortcode
- Custom Post Type Taxonomy Filters
- 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
- Taxonomies relations
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Adding custom taxonomy in same menu place with two custom post types
- How can I move (or create another) publish button?
- Meta-Boxes for CustomPostType cause PHP Errors and Notices in “Add New” view
- Rename a slug label
- Custom taxonomy (categories) on custom post type return no results
- Control content before and after custom post type loop
- Different options per post type in WP_Query
- Pagination hitting 404 page on /page/4
- Rewrite custom post type with taxonomy
- Topic won’t save for a custom post type — how to debug?
- WordPress multisite – is it possible to have different taxonomies for each site?
- Creating a non-hierarchical Taxonomy that behaves like categories
- When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]
- My custom taxonomy is only displaying 1 of 3 terms
- How to show list of taxonomy terms associated with specific post?
- Removing numerous Meta boxes from numerous CPTs
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Getting List of child terms from custom taxonomy parent
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom taxonomy query showing more than 4 posts
- Function to erase every post from a taxonomy
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Setup page template array in a custom post type
- How do I ensure that post_type and Taxonomy use the same slug?
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Duplicate slug/permalink issue while adding same post name
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Get the taxonomy value in the post loop inside the archive page
- How to show related posts of category on post within custom posttype
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Get all posts for custom taxonomy term
- Filter Custom Post Type Posts by Taxonomy
- Listing all custom posts having a specific taxonomy whatever the terms
- Change Search display for Custom Post Type
- Custom search for a custom post type in WordPress
- Custom taxonomy with custom post type archive page
- Display custom tax in “while” loop
- Add active class to foundation 6 tabs while looping categories
- Showing taxonomies with terms that are attached to custom post
- Custom Taxonomy page redirecting to 404 page
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Filter By Term Not Working – Custom Post Type
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- WordPress query posts by custom post type not workng
- Pods pagination erases my sub menu
- Override “Parent” input for custom taxonomy
- WordPress Custom Post Type and sort by Tags
- Check if taxonomy is attached to at least one post in a post-type
- posting twice from an array?
- List custom taxonomy terms
- How do i get the taxonomy term name on the CPT archive page?
- Just the First Metabox what saves the data!
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls