Home › Forums › General Issues › Output WYSIWYG Link As Post ID › Reply To: Output WYSIWYG Link As Post ID
You can’t do this with ACF and it would be difficult using WP to convert a link url to a post id. You might be able to add a filter to “the_content” that looks for urls and tries to convert them to an ID. You might be able to build your own shortcode to put into the content and let them select pages post object ACF field and then get the ID from that, but that’s not something that ACF can do and you’d need to build the shortcode PHP yourself.
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.