Archived topic
Regarding - display custom fields via 'Post Meta'
11 replies · Started by Juned on August 10, 2022
Hi there,
I am trying to display custom fields (text, ACF Pro) value at my WooCommerce Single Product pages.
* Attached URL-1 is the sub-category (Jet Hand Dryers) url.
* I have added values to text fields via product editor at products of this sub-category (Jet Hand Dryers).
* The values are appearing correctly at front end (URL-2) at this particular product only.
* But it is also showing same values at other 02 products of the same sub-category (Jet Hand Dryers). I want that it should display the values of those particular products only.
Kindly guide me for the correct entries at Dynamic Data (I guess this is the place where I am making mistake?)
Hi Juned,
Try to leave the Select source post blank:
https://www.screencast.com/t/96GkRZc52f
Hi Ying,
If I leave this blank, then Dynamic Field is showing as: Post source not selected.
So it doesn't worked.
Hi Juned,
Try to set the data source to current post.
And it worked now :)
Glad that worked! :)
Hi Fernando,
I tried it further, and used shortcode in GP Headline and it is performing more easily even with fields like 'select', 'checkbox', etc.
shortcode example >> (GP Headline) Dimension: [acf field="dimension"]
display result at frontend >> Dimension: 305x200x655 mm
Please confirm on my this method.
You mean you’re using the Shortcode instead of the Dynamic Data setting? That’s alright.
Yes, I used shortcode here within GP Headline, and not Dynamic Data. It worked easily.
I see. That’s fine!
Thanks.
You’re welcome!