Home Forums General Issues It is possible to select a custom post type via ACF?


It is possible to select a custom post type via ACF?

  • 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.


  • 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().

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.