Hi,
I want to show A Custom button with URL in every post using the ACF plugins.
But using the custom field url when I want to show the button in the frontend it only shows the button url
not showing the button text
check the image: https://ibb.co/9bvfr2f
i want to show as a button then url will be came from the ACF
is there any option please let me know.
Hello @artetsu!
That element is implemented to support fields like text, url, email, textarea, number, select, checkbox, radio, and button group: https://prnt.sc/CrTrCZ3RGJB_
Thank you!
Hi,
You might misunderstand.
I don’t want to show this as a form input in the frontend.
I create an ACF field name comments button URL.
but I want to show it as a button in frontend and the button URL will be get from the ACF field
Example: https://ibb.co/zJk1LzF
img: https://ibb.co/9bvfr2f here showing the url but i want to show as a button and inside the button url will get from act fields
Hello @artetsu!
The URL field it will take only the URL. Check this guide: https://support.advancedcustomfields.com/forums/topic/acf-field-inside-button/
Or try like this: https://prnt.sc/OE7EXR-CG4os
I hope that helps you!
Thank you!
hi,
Comments
The above code is works when I add this code in any post or page like example: https://whatson.guide/saatchi-gallery-humanitys-triumphs-and-tragedies/
But when I add this code in a single template its not work
URL: https://whatson.guide/thursday-thrill-epic-events-of-the-week/
the image which works on any post or page: https://ibb.co/2cNVKrp
the image which I added in the single template:
1) https://ibb.co/vqv32n1
2) https://ibb.co/t8C1chb
how it will work on a single template: https://ibb.co/FhVVsYy