• Resolved parkan

    (@parkan)


    I’m working on a site that makes heavy use of ACF Extended custom post types. It previously made use of gatsby-source-wordpress@v3 and queries like this:

          query {
            allWordpressWpVoices(sort: {fields: acf___date, order: DESC}){
              nodes {
                acf {
                  author
                  date
    

    I am now trying to migrate it to current gatsby-source-wordpress, which uses the GraphQL API instead of the REST API and I am having trouble exposing these post types.

    I have WP Gatsby, WP GraphQL and WPGraphQL for Advanced Custom Fields installed and custom field groups enabled for graphql and given names. Queries like this work fine:

    
    {   
        allWpPage {
          edges {     
            node {    
              id    
                slug  
                myCustomAcfFieldGroup 
    

    However, I don’t see a way to expose the custom Voices post type in the same way. The release notes (https://github.com/acf-extended/ACF-Extended#0882) say the ACFE fields have been added to GraphQL so I upgraded to 0.8.8.3 but still no luck.

    It seems like there should be a button on the post config (similar to the REST API config) to expose the type in GraphQL. What am I missing?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ACFE Post Types/options in GraphQL’ is closed to new replies.