Lets say, I have some different custom-post-types: movies, directors, cinemas…
is it somehow possible to select a custom-post-type via an acf-field?
I want to build an url to a specific cpt-archive using wordpress function get_post_type_archive_link()
I tried the Page-Link functionality. But I think it delivers flat urls. And I need to filter them.
Thanks!
You can create a post type selection field by using a select field and then dynamically populating that select field using what is returned by get_post_types() and get_post_type_object().