As the solution suggested in comments worked out for you, I’ll just post that as answer over here.
You need to replace the_ID()
function in your get_post_meta(the_ID(), 'nova_price', true);
call.
Because the_ID()
directly outputs the post ID which is then getting printed for you instead of the meta.
Right code would be:
get_post_meta( get_the_ID(), 'nova_price', true)
This should get you the value for nova_price for the given post.
Related Posts:
- How to change text color depending on the number value (Using javascript)
- Add options to featured image
- Assign category using custom field?
- Default Custom Field Value Automatically Update
- Prevent custom field from being updated after first publish
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- Creating a “Related Meta” type field?
- update_post_meta not working in function
- Add custom fields after post/page title
- Adding and updating repeating custom field meta data
- How to display custom field in woocommerce orders in admin panel?
- Programatically add options to “add new” custom field dropdown
- Get a list of all available fields in the User Profile
- Enabling shortcodes for custom fields
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Change meta tags programatically
- Authors details such as social media links, emails etc → Is this Meta or something else?
- Use a function to update post meta based on other post meta
- post meta data clearing on autosave
- update_post_meta for custom field not working upon form submission
- How to break meta values into different items and avoid duplicates?
- How can update custom meta for all posts
- Function to Download External Images to My Site
- Checked() showing up twice in custom fields
- Convert User ID’s to User Names in a single.php file
- How to use max and min values of custom fields
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- How to wrap meta values seperated by comma in ? [closed]
- Run a check for multiple meta key values
- Move Post to different category if post_meta field is 0 or is 2 days old?
- How to display custom option field in woocommerce orders in admin panel?
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- get_post_meta not working on publishing
- Removing custom meta data
- Change label for registration Fields
- Custom Attachment Caption Fields
- Post meta not updating
- Function to update post_meta based on existing post_meta
- WordPress function saves a post twice and updates all posts
- ACF not showing
- Exclude from the query posts with meta_key and meta_value
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- How to get correct value from checked()?
- Get array of metakey in all posts
- Custom Behavior when Adding New Custom Post Type in Dashboard
- User function to return multiple get_post_meta()
- Hide custom fields when empty
- What are the meta fields for an attachment?
- Programmatically add Yoast meta description after post save
- Update post meta custom field using block editor
- How to make custom comment fields required
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Sort and display pages with specific custom field (not tag)
- shorthand syntax for custom fields
- Fill empty custom field with other custom field
- Hide a div when a custom field is empty
- saving/reading custom field value does not work – no value gets POSTed
- updating one custom meta field only
- Perform function on publish AND save (not just save)
- How to avoid saving empty data to sql while using add_meta_box
- How to Display WooCommerce Product Price in WooCommerce Archive
- Show metadata in users.php – wordpress
- How to add custom metakey to shop_order page’s searching function?
- wp_set_object_term via js btn frontend
- Populate Product Regular Price with a calculated ACF Field Value
- Set class if a meta value is set within post archive
- Update wp_postmeta table based on 2 keys
- blank page with wp_get_attachment
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- Create New User Custom Field not Saving
- How would I correctly implement a new if statement in a child functions file?
- Hide empty custom field
- Remove post from latest posts after a month only with certain tag
- save_post doesn’t correctly process function call with php class
- How To Show Shortcodes In WordPress Custom Fields?
- Return ACF Field value function
- How to echo the translated custom field?
- How to add function to custom fields when page/post has a password?
- How to exclude posts with empty and non-existent relational custom field with meta_query?
- Post date on Custom field
- Dynamically generated Navigation Diagram using Custom Fields
- Define an extra field for all pages (with no plugin?)
- Sorting Posts with meta value not working
- How To Get WordPress Categories Last Update Date?
- How to add a meta information to the URL?
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- How to display data from custom fields in my custom shortcode?
- Syling Custom Fields echo’s from from functions.php
- Custom Field: Display only if a specific key is selected outside the loop
- update_post_meta after form is submited
- Display post_meta-by_key on product catalogue
- How to save custom made object in an array in a post meta field
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?
- Check for custom field value in different post type than current one and do something
- Change Post status based on custom field date +1 day
- WP Query Args – search by meta_key or title
- Saving multiple custom meta box fields