Site logo

Archived topic

Button can't link to the URL in custom field

7 replies · Started by Minhaz on December 23, 2022

Viewing posts 1–8 of 8

My objective was to add a link to a button in post template - dynamically from posts. To this end, I installed ACF and created a field, labeled it 'check price' and set the field type to 'URL'. My post is showing this field. But when I tried to dynamically retrieve this link to the button in Post Template within the query loop, the Link Source under 'dynamic data' does NOT show the ACF field name which is 'check price'. So, my button does not know what I want it to link to.

Am I missing something?

I just set the Show in REST API to true. The field name is still not showing in the "Link Source" of button dynamic data

It might take a while, but anyway you can directly enter the custom field's name in the dynamic data, it doesn't matter if it shows or not in the dropdown list, as long as the field's name is correct, the dynamic data should be able to pull the value.

I can see no way to enter the custom field's name in the dynamic data

You can type the post meta name directly in thePOST META FIELD field, then hit the enter key (returnbutton on your keyboard).

Yes, it's working now. Thanks :)

No Problem, glad to help :)

This archived topic is closed to new replies.