Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Custom fields don't show in schema when using 'Page Type' in location. #210

Closed
holliepearson opened this issue Jan 29, 2021 · 1 comment
Closed
Labels
Location Rules Issues related to ACF Location Rules

Comments

@holliepearson
Copy link

holliepearson commented Jan 29, 2021

When defining the location for the advanced custom field, choosing the criteria as being a 'page type' (i.e Page type is equal to Front Page), the field will no longer show in the schema.

Choosing a different option such as 'page is equal to page name' then causes the field to appear in the schema.

Possibly related to #206

@jasonbahl jasonbahl added this to the ACF Schema Location Rules milestone Mar 5, 2021
@jasonbahl jasonbahl added the Location Rules Issues related to ACF Location Rules label Mar 5, 2021
@jasonbahl
Copy link
Contributor

👋🏻 Hello!

v0.5.0 (#250) resolves this.

The ACF Location Rules are mapped much more accurately to the WPGraphQL Schema, but there are still some rules that are difficult to translate, so there's also a UI that allows you to explicitly set which GraphQL Types the ACF Field Group should show on.

This video walks through the new feature: https://www.youtube.com/watch?v=VvrZGrcwv0Y

Below is also a screenshot of this rule in action, showing that this rule will show the Field Group on the Page Type in the Schema:

Screen Shot 2021-04-20 at 3 50 59 PM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Location Rules Issues related to ACF Location Rules
Projects
None yet
Development

No branches or pull requests

2 participants