Try this:
$jobsTerms = get_terms('jobtype',array( 'taxonomy' => 'jobtype' ));
foreach($jobsTerms as $term){
$checked = (has_term($term->slug, 'jobtype', $post->ID)) ? 'checked="checked"' : '';
echo "<label for="term-" . $term->slug . "">" . $term->name . "</label>";
echo "<input type="checkbox" name="term" . $term->slug . "" value="" . $term->name . "" $checked />";
}
Replace $post_id with whatever you need to get the ID, I’m not sure where exactly this code goes. It may be $post->ID.
Related Posts:
- How to share category taxonomy with custom post type (The Event Calendar plugin)
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Add .html extension to custom post type taxonomies
- remove custom taxonomy metabox form custom post type
- How to Build a Movie Library in WordPress 3.x
- Custom Post Type causes Page Not Found
- Plugin allowing for artists, events and venues
- custom taxonomy and custom post type url conflict
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Limit Number of Taxonomy Terms (Images) Displayed
- Want wp_get_post_terms return in arbitrarily order, how to do?
- ‘No Results Found’ on single post for custom post type
- auto populate list of questions if user select a category xyz
- “Custom Post Type Permalinks” plugin URL strcuture
- Ordering taxonomies by rank
- WordPress custom taxonomy not showing
- Getting taxonomy images to display on single-post with their terms
- Where to populate custom terms in custom taxonomy in plugin?
- wp_insert_term() doesnt insert a term
- Smarter navigation plugin and custom taxonomies
- Rename existing cpt and taxonomy with new textdomain
- how to create hierachial taxonomy and manage under single post type?
- Need to edit author permissions | custom taxonomy
- Adding category base to url in custom post giving 404?
- Cannot view Custom Post Type no matter what I try
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Only return taxonomies that are linked to a category & product
- Why is my custom taxonomy image not displaying?
- Get only selected custom taxonomy
- Get custom term link archive with prefix
- Add “selected” class to custom taxonomy dropdown search
- CPT-onomies CPT_TAXONOMY->get_terms extremely slow with 6K posts
- How to list the categories by custom taxonomy created?
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- Failed to update a post when I add a taxonomy to it
- Create a custom taxonomy’s term form
- How do I know if an archive correspond to a custom post type taxonomy?
- How to Display News in a Timeline with Headline, Category, and Time?
- How to make a page setting translatable in theme?
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- How to get a variable number of posts per post type on the main loop?
- Custom Taxonomy in plugin and template
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- post count is wrong when using same taxonomy for 2 different CPT
- Separate Custom Post Type Taxonomy by Comma
- How to load a new template page according to a particular URL?
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- How to get the custom page get_permalink?
- Get child terms of current term of the current post
- Show Heirachy of categories in WP Download Monitor
- How to check the terms in single custom post type template
- Saving Custom Post types and fields to a custom table
- Building a store locator with google maps
- Widget for adding HTML markup to a page
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- How can I create a custom shortcode that will return a custom post type by ID?
- using $wpdb to get custom post type with term
- Allow user to set custom order to a list of custom taxonomies?
- Which post does a taxonomy term belongs to?
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Dynamic dropdown select values depending on other custom field value
- How to Display Taxonomy Custom Meta Box Data in Archive Page?
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Adding CSS to custom post type admin page causes error
- Redirect to another page using contact form 7? [closed]
- Sticky option for custom post types without using custom fields or plugins
- how to count the current posts terms
- Custom Taxonomy Terms in Menu lead to which page?
- Multiple archives to display parent and subcategories content
- 2 wordpress site same database
- How to Include Custom Post Content From Plugin
- Exporting Custom Taxonomy in plugin
- What hook can I use to modify custom post data before it is displayed on the page?
- Add custom post type taxonomy tag to article class
- Custom Taxonomy dont save in a frontend form for post a custom post
- Creating teams of users in WordPress
- How to display emails as a post?
- Register PODS Custom Field with WPGraphQL [closed]
- Adding custom post category to categories widget
- Custom Post Type with Sequence ID
- How to arrange custom posts in the backend/admin by custom taxonomy
- Adding LOAD MORE on a page
- Rewrite/Change custom taxonomy slug
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Saving Child Terms on front end not setting parent
- Show custom taxonomy not in submenu
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Get a list of categories ids
- get recent 12 days post then random in wordpress
- taxonomy terms array not working
- What method should I use for a sidebar widget that reads latest posts?
- How can I add the custom taxonomy categories to the posts and pages?
- How to laod wp_enqueue_style to another header i created my self
- Looking for a plugins for organization portal (Staff, Units, Departments)? [closed]
- Wrong block appender button showing
- Select posts from list and add them in a new list
- PHP Fatal error: Cannot redeclare distance() when making a new block
- Is there a way to edit non-custom term attributes?