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?
- Query Custom Post Types on Available Dates
- wordpress reusable content blocks
- Override plugin with functions.php
- How to output wordpress custom tags separated by comma?
- how to add extra meta box or textarea into custom post types
- Should i delete the posts created by a plugin on uninstall?
- Show Heirachy of categories in WP Download Monitor
- Custom Taxonomy Tag Search
- Add custom taxonomy to title tag [closed]
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- Allow users mark posts as “complete”?
- How to check the terms in single custom post type template
- Display success message after wp_update_post
- Displaying a custom post types custom taxonomy value?
- Is there a way to order posts and custom post types as one group?
- get_the_terms return only last term
- RW Meta Box ,Problem setting post title
- How does WP handle multiple matching rewrite rules?
- Does WordPress limit the length of slug names for Post Meta or Terms?
- how do i remove posts from a WP_Query so the pagination is right?
- Saving Custom Post types and fields to a custom table
- dynamically generating plugin syntax
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Building a store locator with google maps
- WP plugins for building a database?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- get_post_meta returns empty array for terms
- Accessing post’s meta data based on user’s click of a post
- WordPress category add image field
- Where (or when) should I register a new taxonomy?
- Update post terms with custom taxonomy
- How do I display tags for a custom post type single page?
- Widget for adding HTML markup to a page
- How I can get custom field’s current value?
- Custom Post Type Archive Page Filtering
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Get template part using a custom taxonomy term
- Adding a custom post type taxonomy template in plugin
- Get posts by querying taxonomy and certain terms of the taxonomy?
- How to restrict users and admin from creating new taxonomy terms?
- Insert and then update post_type by wp_update_post
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- Correct way to make meta box with more than one meta field secure
- I want to extend the current themes’ single.php to display the meta fields of my CPT
- Plugin custom post type – Internal server Error
- Exclude post by custom meta with pre_get_posts
- How can I create a custom shortcode that will return a custom post type by ID?
- How can I make a custom post type sticky?
- using $wpdb to get custom post type with term
- Is it possible to create Custom Post plug-in?
- Show posts from two or more custom taxonomy terms
- Allow user to set custom order to a list of custom taxonomies?
- get_post_type() and WP_QUERY issue
- Displaying custom taxonomy in the admin list of a custom post type
- get_post_type on post.php
- Which post does a taxonomy term belongs to?
- All of my custom posttypes are 404’ing
- more types plugin – display all post of post type on page
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?