I added a custom field at new Post, wherein the writer can multi-select a product. However, I want those product selected be automatically added at the post that is being written. It can be in a form of short code(much better)? Or edit the template for new Post?
I don’t have idea yet. But as for woocommerce, I’m using the shortcode something like this: [product_page id=”99″]
Here is what I’m talking about below:
To show the custom field value, you need to modify your template. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/.
I also noticed that you are using the relationship field. To learn how to show the value, kindly check this page: https://www.advancedcustomfields.com/resources/relationship/.
I hope this helps 🙂
I already figured out the page to be edited in my theme. And loop the post object. such wow!:D