Thank you wpfieldwork. I changed the code in line 13 to use the_sub_field and then I realized I was using beer_title instead of flavor_name. Once I changed all of that it works perfectly!!
Thank you so much for all of your help!!
Could you please show me an example of what it should be? I’m really trying to figure this out and with your help I’m so much closer but I’m lost now.
Thank you so much!!
Sorry I forgot to tell you I changed the code with what I have now – https://pastebin.com/KaPTwMFt
Thank you!! I’m getting closer!!! So I changed the link field to a text field and now when I click the image the box opens but it’s displaying the whole webpage with the header as well. What am I doing wrong? And can you please show me an example using the str_replace that you mentioned?
Thanks wpfieldwork! I updated my code but it’s still not working. I updated it here also to show you – https://pastebin.com/KaPTwMFt
Thank you!! Here’s the link to the code I’m using –
Thank you wpfieldwork for looking!
I tried adding the code in my initial post but I came getting a security error and it wouldn’t let me. How can I add the code?
Thank you John for your response and looking at it!
I ended up writing things out to make it more clear and found my errors. I got it to work. Thanks again for looking!
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.