Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this to Upcoming in ACF Schema Location Rules Mar 5, 2021
@jasonbahl jasonbahl added the Location Rules Issues related to ACF Location Rules label Mar 5, 2021
@jasonbahl jasonbahl removed this from Upcoming in ACF Schema Location Rules Mar 30, 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Location Rules Issues related to ACF Location Rules
Projects
None yet
Development

No branches or pull requests

2 participants