I experienced this problem today as well. A client updated the slug of some pages and now the links in some buttons weren’t working any more.
The problem with the ‘post object’ and ‘page link’-fields is that they can’t be used for external links. I thought the ‘link’ field was ideal because it supports every thing, until this problem popped up..
So for places where internal and external links can be used, we are forced to use:
– a switch to choose between inserting an internal/external link
– a post object or page link field for internal links
– a url field for external links
Is this really the best way? That’s a bit frustrating to set up and to code for.
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!
© 2022 Advanced Custom Fields.