@Milo and @Howdy_McGee had the answer.
I found the section I needed to modify in my functions.php file:
case 'text':
echo '<input type="text" name="', $field['id'], '" id="', $field['id'], '"
value="', $meta ? $meta : $field['std'], '" size="30" style="width:97%" />',
It was the value field that was getting truncated, so I passed it through esc_attr() as suggested:
case 'text':
echo '<input type="text" name="', $field['id'], '" id="', $field['id'], '"
value="', esc_attr($meta ? $meta : $field['std']), '" size="30" style="width:97%" />',
Problem solved.
Related Posts:
- explode array within shortcode
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- Call a custom field in an audio shortcode?
- wp_editor in add_meta_boxes does not show gallery
- Custom field for default gallery
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- Audio player shortcode not showing up when using variable
- Create WordPress shortcode with php code inside
- Display WP-Types custom fields in post [closed]
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Shortcode To Display Post Custom Field Value Inside Excerpt
- modify wordpress caption shortcode
- How to create a shortcode to print specific values stored in a post meta array?
- Insert a custom field into a shortcode and use it in post(s)
- Custom wysiwyg editor doesn’t execute shortcodes?
- Custom Field 101
- shortcode in a custom metabox
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- Shortcode To Display Post Custom Field Value in Post Title, Post Content
- custom field (video/audio url) and embed functionality
- IF Custom field value equals ZERO
- Display MP3 as media using an URL from a custom field
- Using a custom field inside a shortocde
- Enable a short code in the custom meta field
- do_shortcode close
- Plugin or shortcode for ISBN number?
- How to pass custom field value to shortcode?
- Replacing custom field with shortcode
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- how can i show WordPress custom field data to my short code?
- Search fails when using the radio buttons
- Create Shortcode shows only posts with custom_field meta
- Output Custom Field value to shortcode
- PHP and Shortcode Combination
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Running a Gallery Shortcode in a Custom Fields Widget
- Custom field in a shortcode?
- Display meta data from a custom field within plugin Category Grid View Gallery
- Insert wp gallery shortcode into custom textarea
- Displaying shortcode content inside custom field without images
- Parse Shortcodes in Theme’s Custom Field?
- Insert shortcode before and after a list automatically
- Retrieving custom field as shortcode
- Custom fields doesnt work well with any postTAB plugin
- How to include custom field in shortcode (do_shortcode) in theme file
- Shortcode not picking up custom field
- Importing data for advanced custom fields plugin?
- Gutenberg add a custom metabox to default blocks
- How to rename a custom field?
- Filter post listing by meta value which is a date
- Extra profile field as select box?
- How to activate “custom fields” section in WP3
- Add meta data to the menu
- Copy SEO Meta Desc “Custom Field” to Excerpt field?
- Custom fields won’t display on my blog page
- How to customize default wordpress editor?
- Add an advert every nth Paragraph
- How to edit multiple post with Custom fields
- Undefined index error when saving content on metabox
- How to update custom user meta field in wp?
- How can I show custom fields in the loop only to specific user roles?
- Add conditional custom option to ‘Display name publicly as’ dropdown
- Custom fields not getting saved in the databse when added to the add new user profile page
- Show 1 post and after a specific date show the next one
- How to Create Dynamic Fields in a Meta Box?
- Can I create a template or doctype for my blog site?
- Custom Metabox additional item
- Split the_title
- How to Wrote Simple Calculations by Using Custom Fields in Loop?
- Custom Query based on custom field of a single post
- How can I use custom properties to set different background on different pages?
- change order of images attached to post
- Loop through incrementing custom fields
- tax query between operator like
- Including Custom fields within the_content
- How to use shortcode inside of shortcode in theme
- Single page WordPress website – custom fields or meta boxes or something else?
- Collect Data from NEXT item while in loop
- Order custom fields alphabetically
- How to query for posts with either one or another custom field
- How show post only from after custom date
- Filter or order based on custom field
- How to use ACF with javascript to update custom field values?
- Custom Fields Not Showing (ACF not installed)
- Show Custom field value instead of title in WP Menu
- How to Find List of Available Custom Fields for Theme?
- Getting user’s data, by custom field lookup (meta)
- get wordpress post loop by meta box date
- Sort posts by custom fields with empty values
- Counting number of images from loop
- Is it possible in WordPress
- Related post thumbnail not showing up
- Edit different parts of a page seperately
- I want my post to republish again after adding a custom field
- Custom fields: dropdown values depending on other custom field value
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How to retrive Custom Fields as Values for a Form field
- jaredatch metaboxes on video post formats