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
- 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
- Retrieve single term slug
- How can I add programmatically custom taxonomy terms to a custom type post when saving posts?
- 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?
- How to get custom posts sub category link
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Adding CSS to custom post type admin page causes error
- ACF: post query, hide duplicate values [closed]
- Redirect to another page using contact form 7? [closed]
- Custom query – get_the_terms not work
- Sticky option for custom post types without using custom fields or plugins
- Adding custom meta boxes to specified custom post type
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- how to count the current posts terms
- How can I store data from custom fields to custom tables?
- 2 wordpress site same database
- How to Include Custom Post Content From Plugin
- Exporting Custom Taxonomy in plugin
- Custom post type change excerpt more and excerpt length
- 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
- hardcoded wp pages/plugins problems
- Error in Fetching Custom Post Type parent Category URL (slug)
- 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
- Excluded Custom Taxonomy Term Posts Displaying in loop
- how to convert frontpage.php to dynamic page?
- 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
- Displaying image from a repeatable group
- Exclude Custom Post Type from shared Custom Taxonomy
- Get a list of categories ids
- How can I add the custom taxonomy categories to the posts and pages?
- Looking for a plugins for organization portal (Staff, Units, Departments)? [closed]
- Suitable hook when creating, updating and deleting posts programmatically
- How to make content as required in custom post type?
- Taxonomy Archive URL + Template