In a front end form, lets say I have a repeater field with two columns. (Products and Price). In the first column (products) there is a Post Object select where you can select products (which is a custom post type, each product is a seperate post). When you select a post object/product I would like to fetch the price (custom field) from the selected post/product and have the price being populated in the second column (Price). Anyone have any experience doing something similar? Any help much appreciated!
The exact same problem that i’m facing. Do you found a solution ?
Yes I did! Using jQuery and WP Rest API I sent the Post Object ID to functions.php where I got and returned the price to jQuery.
https://gopangolin.com/beyond-admin-ajax-using-wordpress-rest-api/