I Found my mistake. Basically, I had a bad prefix… I changed the function name of the get_post_meta
to $gwrrest_stored_meta
but then missed it in the echo
of the text area content. I had “recycled” my code and accidentally left is as $prfx_stored_meta
.
So the line here:
<textarea name="specials-textarea" id="specials-textarea"><?php if ( isset ( $prfx_stored_meta['specials-textarea'] ) ) echo $prfx_stored_meta['specials-textarea'][0]; ?></textarea>
Needed to be changed to:
<textarea name="specials-textarea" id="specials-textarea"><?php if ( isset ( $gwrrest_stored_meta['specials-textarea'] ) ) echo $gwrrest_stored_meta['specials-textarea'][0]; ?></textarea>
Hope that helps someone else.
Related Posts:
- Let’s Create Custom Field Template Documentation
- What is the index [0] for on post meta fields?
- Custom field metabox not showing in back-end
- How to hide meta box values from custom fields list?
- Adding another state (spam, reject, approve) to wordpress comments?
- Meta keywords and descriptions plugin for manually editing meta for each page/post
- Create meta boxes that don’t show in custom fields
- Problem in custom meta boxes
- Multiplile values checkbox or select in custom meta box
- ajax delete value from custom field array
- Custom fields to save multiple values
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- Create Multiple File Upload Metabox in WordPress
- Better Method for Multiple Meta Boxes
- Button inside Custom Meta Box triggering the Update Button
- Why is my Custom Meta Box Field Inputs NOT saving?
- get_posts in meta box dropdown not showing latest posts
- I need a “Choose from existing content” popin
- How can you include custom post meta in search without calling each key?
- Display Custom Meta Box Field Only If Value is Present
- shortcode in a custom metabox
- Problem with saving large amount of data in postmeta/usermeta
- Move Title and the Content WYSIWYG editor position
- How to validate select field in post meta?
- How can I hide custom field from users used for caching response from external api?
- How to use media upload on metabox post page without breaking TinyMCE?
- How add multiple wp_editor_box to new post
- MetaBox not saving after empty
- Can I save post meta programatically without setting metaboxes?
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- If metabox has content display content
- put saved metabox values back into fields and then display on the front end
- Custom meta boxes not saving
- Best way to achieve multiple links in a post title
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Make separate text boxes for separate WordPress Custom Fields
- How to improve my non-unique metadata MySQL entries?
- Set class if a meta value is set within post archive
- WordPress Blocks, setAttributes not saving
- Allow HTML in Custom Metabox area
- Custom field metabox not showing in back-end
- Save, update, get and sanitize post meta as HTML not plain
- Create Meta boxes dynamically
- Save input form on custom field
- Get meta value when the page is a blog archive
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- Adding custom fields to images
- wp_postmeta are updated for only one page
- When editing a post with a custom meta box the values aren’t displaying correctly
- How to add new Metadata options (Date, Author, etc.) for Posts?
- Saving multiple custom meta box fields
- How can I avoid re-inventing the Custom Fields wheel in my Plugin’s Metabox?
- display specific custom fields
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Unable to save datetime custom meta field using update_post_meta() function
- Create custom field on post draft or publish?
- get_post_meta fields don’t show up on posts page
- copy attachments to another post type and change attachment url
- Cannot edit post meta fields with rest API
- Add a post meta key and value only if it does not exist on the post
- Function to change meta value in database for each post
- Get aggregate list of all custom fields for entire blog
- Woocommerce with metabox plugin
- Dynamically add / duplicate custom meta in custom post types
- using multiple meta_key and meta_value in query_posts
- MySQL Query that looks for post with Custom Field, then changes Category
- ACF: How to get the full field name (meta_key) by a field key?
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- Tweak Meta for Post to work it for Pages also
- How to add a new meta key and assign timestamp to posts
- How to select posts from multiple categories and metavalues?
- Custom Meta Box (SELECT) Not Saving
- Displaying multiple URLs as custom field values
- Stop sending email everytime I updates my post
- Best way to store everyday post views?
- Unable to get specific value from post meta
- Custom meta is not being saved
- IF Custom field value equals ZERO
- Branch made by several custom values
- WordPress creates new lines in postmeta table on post update
- User customising position of WordPress Featured Image
- Insert image into sub-field with update_post_meta
- Let author add field to metabox by pressing a button
- How to use conditional statement with custom field
- How can I add/update post meta in a admin menu page?
- Get author total post votes from post meta
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- Save custom field types with this function…?
- Custom Meta Data is not being saved
- How to display custom fields in hestia theme
- How to speed up post list slowed by update_meta_cache()?
- non-unique #_ajax_nonce id in browser console
- Issue on Creating Checkbox Field On Custom Post type
- Update custom field on page specific to logged in user
- Why does this javascript search function in the WordPress Admin not work?
- change attachment custom field onChange event
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- added a meta box to post however when saving menu while debug on throws a warning
- Make Custom Fields Public in JSON – API