Adding ACF fields to Tagdiv composer

Posted in: Newspaper
Post count: 54

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.

Post count: 27744

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!

Post count: 54

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 🙂

Post count: 27744

Hi,

You can use the acf plugin to create the cpts and taxonomies.

Thank you!

Post count: 54

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

Post count: 27744

Hi,

To display the custom field, you need to have a value assigned to a page/post to display it.

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.