Figured it out! I didn’t have the javascript code wrapped with the following:
jQuery(document).ready( function($){ });
Related Posts:
- Add metabox with media uploader in a custom post type [duplicate]
- Remove tabs from media uploader for a CPT
- Calculate Repeater Meta Box Input Field Values and Display Total
- How to create a repeatable / reusable divs in the metabox?
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Duplicate Custom Header Functionality into the post edit screen
- Push metadata in array
- WordPress 3.5 Media Uploader – Only allow 1 upload and certain file types
- How to Create an Image Upload Box for Custom Posts?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Checking if $_FILE isset for an array of file upload metaboxes
- Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”
- Create a custom post type for a photo post
- Invalid file type when using wp_upload_bits to upload PDF to a custom post type
- Adding Meta Boxes while Registering a Post Type in a Class
- Check Title Unique Or Not and If not error message and dont save
- How to rename image at uploading on specific plugin or post-type in WordPress
- adding checkbox to meta
- How can I display my custom metaboxes on a custom post template?
- Meta Box Only in CPT Edit Page, Not in Add New
- get_post_meta is returning image id
- Metabox Populated with a Custom Post Type – How to Output CPT based on Select?
- Is it possible to create a post using a metabox?
- Custom Post Type with metaboxes (no content) only?
- Why do I lose the content of meta boxes when I leave the page?
- Dynamically add / duplicate custom meta in custom post types
- Add TinyMCE to CPT metaboxes in 3.1?
- Custom Post Type Metabox – Not Saving
- How can I show/add/save custom metaboxes as an Array of values?
- WordPress nl2br is not converting newline to html line break when saving metabox value
- Unable to show meta box data in frontend
- WordPress custom meta field for custom post not storing data
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Cannot attach media when capabilities added to custom post type
- How can I create a custom meta box to add an mp4 video to a page?
- How to Duplicate (multiple meta box)?
- advanced search forms with 3 input text and that the main problem 3 input text
- List custom post types in metabox
- Create custom PAGE with register_post_type
- List of Posts in a Custom Field
- Save an array from drop-down in custom meta box
- Remove fields on media uploader for custom page type – not working for “From Computer” or “From Url” tabs?
- Using My-Meta-Box-Class plugin, how is ‘Date’ value stored?
- Open div inside a custom post-type with Fancybox
- Pull a post based on a meta value in a custom post type
- Populate Custom Fields in a Custom Post Type?
- Change meta box when the page’s template is changed
- Very simple wordpress block to display posts from an api call
- Send email button in custom post type backend
- How to get the parent of a non-hierarchical custom post type being edited in Gutenberg
- Force documents to appear in Featured Image dialogue
- Cannot save Checkbox meta box value from a Custom Post Type
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- Custom meta box not saving
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- What’s the difference between same wp functions get_posts(); functions in different form?
- Keep display metadata value on backend – Custom Metabox
- Populate dropdown from one custom post type inside another custom post type
- Storing posts from query and accessing later via AJAX call
- Troubles with saving metabox
- How to check if user meta field is empty in conditional else statement
- Custom Post Type with Templates using Meta Boxes?
- Notice: Undefined index: error and understanding wordpress
- Display users uploaded files as posts
- Get image post ID in media upload
- Why is my select meta data not saving?
- Add Standard Page Attributes Metabox for Page Parent
- dynamically add a custom field or metabox to custom post type [duplicate]
- Add a button or image button that calls wp functions in the wp-admin
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- Custom Post Type uses Custom Tags in add_filter?
- Post Quote with image on header for news site
- Custom date changer post_date => future – missed schedule error
- How to store multiple values in 1 meta_key with radio input?
- What is the best way to correlate one-to-many content-type relationships?
- Illegal offset type in get_post_type_object()?
- Is it possible to create relational metabox values in a custom post?
- Changing custom type name hides the posts
- Visual editor issue by having multiple tiny mce editors in a CPT
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- A better way to add a meta box to custom post types
- Save the post parent in a custom post type in Gutenberg
- How to get the upcoming post ID from front end?
- Trouble with CPT Child 404
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Getting Custom Post Type Meta on Publish
- JS innerhtml changing style when using AJAX
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Side effects of Script and Iframe in post
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Custom Post Type Video – Online/Offline
- Grouping metadatas into one
- Anon function and add_meta_box
- Metabox not show in categories custom post type cmb2
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Display correctly using metabox.io
- Create Connection Between two post types