I have a site with custom post types. I can set the location of a custom field to be one of those post types themselves (so the custom field appears on all pages of that post type), but can’t see a way to select a specific page that exists under that post type.
I’m presuming this is either really obvious or there’s something custom in my theme overriding this (though I’ve checked in two different sites and the behaviour is the same).
What I’d expect in Location:
I choose “Page” “is equal to” and I see Pages and Custom Post Types
I choose “Post Type” “is equal to” a specific post type, then choose and “Page” “is equal to” and see only the pages of that custom post type.
What I see is only Pages.
I’m pretty sure this worked in the past. Am I missing something here? Do I need to add something to functions? (Using the latest ACF PRO.)
ah, yeah! ok, that’s exactly it. Somehow I thought because the custom post types are ‘capability_type’ => ‘page’, ‘hierarchical’ => true I’d find them under pages. I would have never looked under ‘Post is equal to’, thanks!
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Location select page from custom post type’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users