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

Feature Request: Allow queries to ACF fields specific to a Category #52

Closed
lyonsv opened this issue Aug 23, 2019 · 4 comments
Closed

Feature Request: Allow queries to ACF fields specific to a Category #52

lyonsv opened this issue Aug 23, 2019 · 4 comments
Labels
Location Rules Issues related to ACF Location Rules

Comments

@lyonsv
Copy link

lyonsv commented Aug 23, 2019

Feature

Category specific ACF fields are not currently available to query and need to be mapped.

Example

The below will not appear in our schema:

image

@lyonsv lyonsv changed the title Featured Request: Allow queries to ACF fields specific to a Category Feature Request: Allow queries to ACF fields specific to a Category Aug 26, 2019
@RAYAPINAntoine
Copy link

Hi lyonsv,

I get the same probleme do you find a way to fix it ?

Or if somebody else have already fix this can help us please ?

@kuworking
Copy link

Me too, is there any link that describes what is enabled currently in this conditional showing?

@jasonbahl jasonbahl added the Location Rules Issues related to ACF Location Rules label Feb 24, 2020
@muradbu
Copy link

muradbu commented Dec 27, 2020

Is this still being maintained?

@jasonbahl jasonbahl added this to the ACF Schema Location Rules milestone Mar 30, 2021
@jasonbahl jasonbahl removed this from Upcoming in ACF Schema Location Rules Mar 30, 2021
@jasonbahl
Copy link
Contributor

jasonbahl commented Apr 20, 2021

👋🏻 Sorry for the delay on this!

With v0.5.0 (#250) this is resolved!

Below is a screenshot showing the location rule adding the field group to a specific post category.

In the WP Admin, this means the field group will only show for editors to interact with for posts with that category assigned, and in WPGraphQL the field group will be associated with the Post type so that the field group can be queried on any Post (as the associated categories aren't known until the query is resolved).

Screen Shot 2021-04-20 at 3 57 44 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

5 participants