Try Like below
function fhaac_subject_box_callback( $post ){
wp_nonce_field( basename(__FILE__ ), 'fhacc_subject_nounce');
$fhaac_stored_subject_meta = get_post_meta( '$post->ID' );
$fhaac_subject_name = get_post_meta($post->ID, 'my_data_subjectName', true);
?>
<div>Subject name: <input type="text" name="fhaac_subject_name" id="fhaac_
subject_name" value="<?= $fhaac_subject_name; ?>"/></div>
Related Posts:
- Sanitizing integer input for update_post_meta
- Should I sanitize custom post meta if it is going to be escaped later?
- Correct processing of `$_POST`, following WordPress Coding Standards
- How to sanitize post meta field value?
- Copy content stored in meta to post content
- Can A Post Meta Field Store multiple values that are not in an array?
- esc_attr on get_post_meta [closed]
- Proper Way to Sanitize Meta Input
- Extend file format support for post thumbnails
- Most efficient way to get posts with postmeta
- Get posts by meta value
- How to update_post_meta value as array
- What’s the point of get_post_meta’s $single param?
- Get a single post by a unique meta value
- Trying to get custom post meta through Jetpack JSON API [closed]
- Remove post meta keys
- Why time functions show invalid time zone when using ‘c’ time format?
- Why is get_post_meta returning an array when I specify it as single?
- Add post meta based on another post meta value before publish post
- WP REST API “rest_no_route” when trying to update meta
- delete value 0 in post meta [closed]
- Can I safely delete a record, manually, in the wp postmeta table?
- What action hook updates post meta?
- Exclude a category from the filed under list
- How do I access post meta data when publishing a new post in Gutenberg?
- How to add meta tag to wordpress posts filter?
- Are multiple values from get_post_meta guaranteed to be ordered?
- Add a post metadata if only the key and value does not exist
- How can I get values using key in Carbon Fields from Multiselect?
- WordPress Action Hooks and Post ID?
- Generate an Email address from that of the Post Author
- Get page->parent’s name?
- conditional function to change post-meta background image
- Custom meta field don’t give me numerical value
- how to get all post with the same post meta?
- Finding the page id
- WP_POSTMETA – What do these values mean inside the data structure?
- Echo page title from page with custom meta datetime picker
- MySQL Query To Select Post By Postmeta
- Unset field from an array not working as expected
- Update post_meta with WooCommere variation data
- How to programmatically customise the Contact Form7 notification email prior to sending? [closed]
- Saving repeated option values when querying in Published, draft and all
- How to hide meta block(s) in certain post format
- Meta function issue
- need some assistance with the checkboxes (selecting/deselecting featured posts)
- get_post_meta() not work for the first post inside the loop
- get_post_meta is showing file url in url bar
- Adding new value to existing meta key
- how to get a list of meta data fields assocaited with a custom post type
- Gutenberg: How to display meta field data in the block frontend (save function)
- String taken from database table post_meta is showing HTML tags on Frontend
- Delete posts based on post meta data
- Query posts WITHOUT a custom meta field
- Add box with custom per-page properties
- get_post_meta not working when variable used for post ID
- Is it safe to add a new field to meta_value field?
- How do I edit the posted “by” and “on” in the post meta
- How to delete duplicate records in wp_postmeta database table?
- Need a SQL query to update meta_key=’_price’ with value in meta_key=’_regular_price’
- update_post_meta() adding bits in database [closed]
- Get posts ordered by meta data
- Displaying values from related field – if empty shows current post type’s link and title
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- Display Post Meta in Header
- Array of user ids to list of user names
- Conditional For get_the_author_meta
- Custom fields or something else
- Is there a way combine posts meta_name?
- I want to Add Feedburner Right After Meta Details
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- How to access post meta on the first time a post is published
- Removing Malware
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- After updating the custom post type, metafields disappear from the post.php edit menu, how do I fix it?
- URL from get_post_meta() is broken my URL
- How to update/add child posts meta whenever the parent post meta is updated?
- How to query post with meta?
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- Using a comma instead of a pipe to separate metadata
- show user based on user_meta
- Meta keys won’t add using wp_insert_post
- undesrtanding get_post_meta function
- How to call get_post()?
- Retrieve posts from meta key
- Assign postmeta in bulk
- Re-order posts inside tax query
- Posts with no meta field do not appear when sorting by meta field
- How do I delete element from a serialized array upon deletion of a post?
- Using mysql queries to delete custom post types based on meta_value
- Get meta information from post parent
- Write query according to post_meta
- Why values dont shows in custom post column?
- get_post_meta of multiple posts?
- I am stuck between post meta function to call unique id
- Post meta box data not saving