Home › Forums › Front-end Issues › Page Link fails when cloned (Clone Field) › Reply To: Page Link fails when cloned (Clone Field)
Thanks @jimkrill. I thought maybe it was just me because I hadn’t heard much from anyone else about this. Your solution works great.
Because I didn’t want to go back and edit my code after this issue is fixed, I had switched to just using a Post Object field rather than a Page Link, using get_permalink()
with the ID, but I think your idea of using is_numeric()
is a better solution.
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.