Home › Forums › General Issues › Add ACF field of single product page › Reply To: Add ACF field of single product page
Hi @danis44
Yes, only works if a pdf has been added, so add a pdf just to check the code works.
echo '<a href="'.$pdf['url'].'" class="your-class-name" target="_blank">link</a>';
Update to this line for a class and opening in a new tab. Just change the class to what you need, then add styling via CSS
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.