My bad – the mark up for the edit page is different than add. Used this instead
add_action('provider_edit_form_fields', array($this, 'category_metabox_edit'), 10, 1);
// add image field in edit form
function category_metabox_edit($tag) {
$term_val = get_term_meta($tag->term_id, 'show_on_provider', true);
$term_val == 1 ? $checked = 'checked' : $checked = '';
echo '<tr class="form-field">
<th scope="row" valign="top"><label for="show_on_provider">' . __('Show on list?') . '</label></th>
<td>
<input name="show_on_provider" id="show_on_provider" type="checkbox" value="1" '.$checked.' />
</td>
</tr>';
}
Related Posts:
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_term_children for immediate children only (not grandchildren)
- Is there a way to ‘Lock’ a Taxonomy?
- Creating a non-removable taxonomy term
- Large taxonomy (2000+ terms), causing WordPress to hang
- Return only the custom sub-term for custom post type, do not echo term-parent
- wp_insert_term is adding a term that has no name
- Check if current term is a child of another term
- Get terms from multiple taxonomies
- Formating the_terms() function output
- get_terms showing link to category even if all posts are drafts
- Determine if Term has Grandparent/Great-Grandparent
- Retrieving custom taxonomy in order, but excluding specific tax IDs
- Get main parent categories for a product
- get taxonomy terms for parent and child
- Taxonomy query for children of parents
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Separator for multiple terms
- Contact Form 7 – Populating dropdown list with terms relative to the post
- Ordering Posts with Custom Taxonomy Terms Array
- How to create a theme template for the taxonomy “root”
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- How to handle “the_terms” inside loop
- How to create drop down for child categories of current taxonomy being viewed?
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Get terms ordered by post date
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Get Bottom Most Level Taxonomy Terms?
- How can I get WP to build a feed based on multiple taxonomy terms
- How to order a list of taxonomy terms alphabetically?
- get_terms in a taxonomy template
- Set custom post type terms by id without knowing taxonomy
- Display hierarchical subterms of custom taxonomy based on depth
- Get Current Custom Taxonomy ID by Post ID
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Use get_the_terms to list subcategories of custom taxonomy
- AJAX response, edit tags
- List child terms if parent but show nothing on children
- Get_terms stopped working after WP 4.2
- Display Taxonomy Terms in an option tag with value being the slug
- Changing taxonomy term by slug (wp_update_term)
- If post has ANY term attached to it, get the first one only
- Getting Term ID from Term Name for WordPress Query
- Show only the grandchildren (using get_terms)
- How to show the a custom taxonomy term on single post metadata
- Sort order by slug for looped child terms of custom taxonomy
- Add Custom Taxonomy for Blog Meta Info
- wp_insert_term created and set for first once only
- Updating / Saving items generated by wp_terms_checklist on frontend
- Rewrite rules for varying nested terms of custom taxonomy
- Display all posts that use a custom taxonomy
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Are term IDs unique even between multiple custom taxonomies
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Get all attachments by custom taxonomy – term
- Get terms that don’t belong to current post with a shortcode
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Get name of taxonomies of current page
- Create alphabetical Pagination for custom taxonomy?
- export and import taxonomy terms from one taxonomy to another
- save custom term – hook create_term doesn’t work
- URL rewriting taxonomy term
- Find terms in a custom taxonomy based on the hirearchy
- How to show post for a particular term of custom taxonomy?
- Wp_query…a type of term a different div
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- Show single Child Category on Custom Post
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Pull data from MySQL and add it to terms
- Get custom taxonomy terms that contain posts that have another taxonomy term
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Filter “get_terms” query
- generate random slug when adding taxonomy
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- Custom post type term names with ampersand in the term name
- If page is a taxonomy do X, if is a term, do Y
- Query pages by child term
- Getting the parent terms adds additional empty markup [closed]
- Custom taxonomy list in two columns
- Taxonomy term breadcrumb; how?
- Insert term description programmatically into hierarchical custom taxonomy
- get multiple values from $_GET from multiple checkboxes
- Get post terms with hierarchical relationships
- Unable to display the post titles in a drop down
- Taxonomy archive link from term id
- How can I get the term_id from the action hook ‘set_object_terms’?
- List posts grouped by children of a custom taxonomy
- Hide empty categories on widget