I have a bunch of ACF fields on my site, for specific products. Each product has a name, URL and some other fields. I’ve created a page for each product, and I want to use a button that shows the URL field (from ACF). However, it doesn’t seem to work. I’ve tried adding the ACF shortcode, calling ACF with the php function..nothing works.
I know I can add this field with the custom field elements from the composer, but I specifically want to use a button for aesthetics and to use the GA tracking function.
Hello,
Another solution is to use the element button and set the custom field there -> https://i.imgur.com/ZGYBjfE.png. You need to use {cf_nameoffield} -> https://i.imgur.com/F2ysuLA.png
Thank you!
Thank you for the response. Unforturtuntely, I figured you have to have CPT UI installed which is kinda redunant now with ACF. i thought only having ACF installed would let me pull the fields in Composer. That’s not the case however.
I hate having 2 plugins to do this, but it is what it is, it seems 🙂
I would love to know how, if you can give me an example. If I have the ACF field “name”, I can’t output it in the composer unless I use it the custom field shortcode. If I use {cpt_name}, it doesn’t show anything. However, once I install CPT Ui and add a post type with it then attach the ACF fields to it, it works with no problem.
In out button case, unless I’m missing something, I have to have CPT UI. Would love to find out there’s another way so I can uninstall CPT