A possible solution is to use jquery to show/hide your custom field, something like this:
<script>
jQuery(document).ready(function($) {
$('#yourcheckboxidentifier').click(function() {
$('#customfieldidentifier').fadeToggle(400);
});
if ($('#yourcheckboxidentifier').val() !== undefined) {
$('#customfieldidentifier').show();
}
});
</script>
Related Posts:
- Custom Post Types: How-to get rid of editor (-meta box)
- Visual editor issue by having multiple tiny mce editors in a CPT
- Editor / Add Media: Is it possible to only allow galleries?
- How to display value of custom fields in page
- Possible to turn off autosave for single custom post type
- Using meta_query, how can i filter by a custom field and order by another one?
- Truncating custom fields
- Querying custom post type with 2 custom fields (date-range)
- manage posts custom column is not populating data from meta boxes
- Create child page within custom post type
- How Can I save multiple records in same meta key?
- Add custom field to media attachment image attribute in post editor
- Getting Bootstrap accordion working in WordPress loop with custom post type (collapsing issue)
- Custom post type or just use custom fields
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- set and unset the custom field value
- How to Sort by Date When Using d-m-Y Format
- Metabox saving values
- WP insert post PHP function dynamically generated Custom Fields
- Multiple information using custom post type
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Editor access to menu: custom post type missing
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily
- Before Delete Post
- Sort posts based on multiple custom fields
- Related links – from other sites
- 1 day after custom date change post status to draft
- WP_Query that filters based on custom relationship field
- Filtering by Post Meta Custom Fields – Performance
- WP Query—Relationship between two custom post types and their fields
- Why do I lose the content of meta boxes when I leave the page?
- Remove wrong dashes from get_the_title()
- Plugin for custom posts and fields [closed]
- Populate Custom Fields in a Custom Post Type?
- Returning a list of custom post types excluding those without a specific meta_value
- How to check if user meta field is empty in conditional else statement
- How to stick custom post at the top in search results
- Custom post type content using custom fields without template
- WP_Query order by custom field, then randomly order some of results
- Plugin – Combine Meta Box Input Fields into single saveble record
- Callback to custom field is not working in WordPress REST API
- How to render a custom post type template with custom fields using shortcode
- Get Posts by multiple custom fields is not working
- Cannot save CPT meta box
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- filter search custom field query
- How to add multiple markers on the google map, at a certain meta_key and meta_value
- Custom fields for custom post type
- Warning: Invalid argument supplied for foreach() [closed]
- Add additional field to custom post_type
- Sorting posts by custom field value in array
- How to conditionally add Custom Post Type to Front Page
- Custome fields not displayed
- Displaying custom fields for custom post type generate with Custom Post Type UI Plugin
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Custom post type name and assigning custom taxonomy
- Custom post types, disable fields
- Best way to create a search for custom post type by custom field values
- Building a Portfolio and need some direction
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- Display Posts Query with IF function
- Excerpt length: get first paragraph
- Custom PT, Taxonomys and wordpress query
- How can i loop through custom post type according to custom meta field?
- How to use get_post_custom_values to return the value of an array
- Problem with date comparison for custom fields
- How do I disable the built-in editor and automatically configure the properties of new pages?
- Creating a custom page post type just like the original “pages” post type using CPT UI
- Using OR relation in meta_query to check for a value before sorting by another
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- wp_editor in custom post type is not saving formatted text like bold, italic etc
- Sort custom post archives by a meta value from a different custom post type?
- Displaying posts inside table having issues
- Ordering Post by Meta Key (Not Working)
- Error when moving custom post type to bin
- Enforce all custom posts have specific custom fields
- Use WP Title instead of custom field to call
- Custom taxonomy template for custom fields loop [closed]
- How do I display specific custom posts, and how do I edit a post’s singular page?
- WP_posts (Not meta) extra custom field column show and change it in a custom post type
- What’s the most efficient way to get two queries based on an if statement?
- Amend posts using wp_insert_post
- Custom Fields as Post Type Options
- How to get past and upcoming post by defining date in custom field?
- Selecting posts older than the current Unix epoch timestamp
- display some fields in custom post backend
- Forms with multiple element types using custom post types
- How to display Multi Checkbos select Custom Field on the post?
- custom field suit new post with in custom fields
- Customizing the display of custom post types
- Textarea type on one field custom add_meta_box?
- Extending a CPT by Created by another plugin
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- How to change order of custom post types. I want Featured post to come first
- Good practical way to do loop within loop to show child custom type using a template code
- How to display *block number* instead *date value* on WordPress posts?