I have an ACF file upload field that i use to dynamically populate a button.
It works when i populate the button so that’s cool, however if i wanted to show it as text, I’d get a number, an ID.
What i want to do is the following: i want to check if the URL contains the format “.pdf” and return a button, if instead the button returns an external link, for example, then i’d return another button.
This is a problem because since the button returns an ID, the conditions " [meta] NOT IN .pdf" is the one that always returns TRUE.
Is there a way to achieve this?