Home › Forums › General Issues › option_home filter and Acf Page Links for CPT Archives › Reply To: option_home filter and Acf Page Links for CPT Archives
ACF set the URL when the page is selected and stores one of 2 things, one is a post ID when selecting a post and the other is the URL of an archive page.
I do not know if your filter will work in the case of a post ID, in this case ACF calls get_permalink() for the post.
In the second case ACF does not do anything, it just returns the value stored in the DB. In this case you would need to use an acf/format_value filter to alter the returned URL.
This is the only field available in ACF that I know of that will allow selecting archive pages. Beyond this you are looking at either building a custom field or building several custom filters for an existing field type,
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!
📣 “ACF Chat Fridays”— Advanced Custom Fields (@wp_acf) January 31, 2023
The ACF team holds their first open office hours this Friday! Come and talk ACF, and ask questions about building sites with the plugin.
We’d love to see you there!
📆 Friday 3rd Feb - 3pm UTC
👉 Register here - https://t.co/3UtvQbE4CU pic.twitter.com/oTwW9K1XQ0
© 2023 Advanced Custom Fields.