ACF Custom Field on Button
I am trying to add a simple CTA custom field using ACF. I can access it in the builder using #CTA Label but it doesn't appear that you can use dynamic fields on buttons. Is this something that will be added at some point?
-
Hi, Nicholas,
How did you declare the CTA in ACF? I can suggest to create a new field and set it with the URL type field https://jmp.sh/QC1uiMQ. After this go to the template and add a button. Set the button with the URL custom field. For example in my case, I create an URL Custom Field "Link". For the button, I selected the "Link" field. https://jmp.sh/tQY6kLy
In the preview, the button works with the URL I set in the Post.
Best regards,
Sandra0 -
I’ve used a text field type since this is just the label I was adjusting. Was attempting to use # linking but no options are prompted so assuming buttons don’t have this feature... yet?
0 -
If you set the Custom Field as "URL", you can attach it to the button as I show you in the previous screens. Could you check them again?
Best regards,
Sandra0
Please sign in to leave a comment.
Comments
3 comments