When generating the form all you need is the post id of the product pages and you can use get_post_meta function to retive the information about that product , so basically you just need to pass the product post id. eg:
$price = get_post_meta($product_post_id,'price',true);
Related Posts:
- WP_Query – Order results by meta value
- Custom query with orderby meta_value of custom field
- Custom post meta field effect on the performance on the post
- Difference between meta keys with _ and without _ [duplicate]
- Orderby meta_value only returns posts that have existing meta_key
- How to enable revisions for post meta data?
- Any way to add custom options to Gallery Settings?
- Can I query custom meta data through WP_Query
- Including custom fields in search?
- Add custom objects/entities to WordPress
- Change behavior of “Insert into Post” based on attachment metadata
- Sort posts by custom field numeric value using dropdown
- How to position a custom field before the editor
- How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?
- Is there a way to do multiple ordering on a multiple meta_query?
- searching in custom meta field
- How to add upload field in a custom taxonomy?
- Display thumbnail from custom field
- Bulk move (or copy) from a custom field to the post content?
- Plugins won’t recognize my plugin’s hidden custom fields
- Store JSON in a custom field
- Getting Custom Field data from a page hierarchy
- Custom contact form 7 select with custom values [closed]
- limit amount of photos uploaded per cpt post
- Problem with adding exta field in metabox in custom post type
- Best way to add custom / magic / flutter fields into RSS feed
- Setting orderby to a custom field using pre_get_posts
- Add WYSIWYG to Image Description field
- Calling custom profile fields?
- How to get multiple checkboxes in one meta field
- Adding Custom Fields to Search
- How to Display Custom Meta Box only on Specific Page IDs
- Get custom field label
- Show ACF fields only on certain page in the backend
- Custom Field Suite A little problem
- How make a custom search on backend in WordPress without plugin?
- Create Multiple File Upload Metabox in WordPress
- WP_User_Query pulling ACF to loop
- how to put a custom field value in variable
- Custom Metabox Not Saving
- get_posts that haven’t been assigned a specific custom field
- How to add the image URL from an external RSS feed and insert into a custom field?
- My custom backend codes shows up when i try to view my website
- Advanced Custom Fields dynamic update_field
- Custom Profile Fields move from BBpress to BuddyPress
- How can I output a list of values for a custom field, and posts with those values?
- Manipulate javascript code from custom made admin page menu
- Add additional ‘description’ field for defined roles / role metadata?
- Change the main loop WordPress impact on the server?
- I need a “Choose from existing content” popin
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Avoiding ACF get_field and returning to core WordPress function
- Walker class for sub-menu with ACF fields
- Display custom field value part by part?
- Add custom fields to existing posts (admin pages)
- How can I hide custom field from users used for caching response from external api?
- How do i get the attached images with custom value checked?
- How to disable Edit Post and Allow only Custom Field?
- Convert attachment ID into url?
- Cannot save underscore custom fields in one wordpress installation using xmlrpc and underscores
- Diamond question mark in text after migrating content
- Display posts with empty custom field
- Custom Fields Question
- do_shortcode close
- Add custom data (field) to sidebar widgets for later display
- How do I convert all custom_field php timestamps in the database to js timestamps?
- Display custom field value as a mailto: link
- Display custom field only if it has a value
- Make separate text boxes for separate WordPress Custom Fields
- Sort by an ACF field in a tax_query
- How do I display an article using a WordPress custom field?
- Custom field metabox not showing in back-end
- Load one page with parent and child pages
- Why can’t I get the correct post permalink
- Use a different catalog image than the featured image
- Query Multiple meta
- Ordering posts by custom fields
- How to diplay a div only if at least one author custom profile field is filled?
- Set custom field value when reaching expiration date
- Show message if statement is false – foreach
- Order by custom field in query multiple
- Returning website screenshot based on Custom Field
- How to allow user to add to, but not edit, a post?
- Echo text if field under user_meta is empty with get_users()
- Filtering posts by WORD in custom field
- How to organise via Custom Fields on Category Page
- Calling Custom Field within Function wrapped with Divs.
- How to implement jquery-ui autocomplete into custom fields?
- Add image custom attribute [closed]
- i want to send email on custom post field (job_status == 2) but it is not working
- Foreach giving one too many list items, how can I remove the last empty line?
- How to create a searchable database with a single-field search box at the front end? [closed]
- Add custom fields to specific menus
- Dynamically update Custom Fields to display new dates
- Add fields to edit in custom widget
- save all acf options in one meta_value [closed]
- Can running a WP-Cron to update_post_meta cause performance issues?
- custom field value is blank or empty
- How to add a custom field to the comments “Quick Edit” screen?
- Multiple triggers when publishing, saving or updating a post in WordPress