Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. WordPress-Gatsby
  3. WPGraphQL for Advanced Custom Fields

WPGraphQL for Advanced Custom Fields

PHPv0.6.2

Exposes Advanced Custom Fields (ACF) data to the WPGraphQL schema for headless WordPress.

Visit WebsiteGitHubGitHub
618 stars114 forks0 contributors

What is WPGraphQL for Advanced Custom Fields?

WPGraphQL for Advanced Custom Fields is a WordPress plugin that bridges Advanced Custom Fields (ACF) with the WPGraphQL GraphQL API. It automatically exposes ACF field groups and custom field data to the GraphQL schema, allowing developers to query structured content from headless WordPress setups. This solves the problem of accessing complex custom fields in decoupled architectures without custom REST endpoints.

Target Audience

WordPress developers building headless or decoupled websites, especially those using WPGraphQL and Advanced Custom Fields to manage structured content.

Value Proposition

Developers choose this plugin because it seamlessly integrates ACF with WPGraphQL, eliminating the need for custom API development. It provides a declarative, opt-in approach to expose only intended fields, ensuring security and schema clarity while supporting a wide range of ACF field types.

Overview

WPGraphQL for Advanced Custom Fields

Use Cases

Best For

  • Building headless WordPress frontends with React or Vue that need ACF data
  • Querying complex ACF field structures (like repeaters or flexible content) via GraphQL
  • Exposing ACF options pages to a decoupled site for global settings
  • Integrating WordPress custom fields with modern JAMstack applications
  • Creating type-safe GraphQL queries for ACF-managed content
  • Migrating traditional WordPress sites to a decoupled architecture without losing ACF functionality

Not Ideal For

  • WordPress sites relying solely on the REST API without GraphQL adoption plans
  • Projects using ACF location rules for specific, context-dependent pages (e.g., single page rules) that don't map to GraphQL types
  • Teams needing long-term stability without breaking changes, given the major v2.0 overhaul and repository archiving
  • Simple custom field implementations where the overhead of managing multiple plugins (WPGraphQL, ACF) isn't justified

Pros & Cons

Pros

Automatic Schema Mapping

Automatically exposes ACF field groups to the WPGraphQL schema when configured with 'show_in_graphql', as demonstrated in both GUI settings and PHP code examples in the README.

Broad Field Support

Supports numerous ACF field types including text, image, repeater, and flexible content, with dedicated documentation for each field, enabling complex data queries in headless setups.

Options Pages Integration

Allows exposure of ACF options pages to GraphQL for site-wide settings, enabling direct queries like `myOptionsPage { someCustomField }` as per the README example.

Declarative Opt-in Security

Fields are only exposed to GraphQL when explicitly set via 'show_in_graphql', preventing unintended data exposure and adhering to a secure, declarative approach highlighted in the philosophy.

Cons

Breaking Changes Risk

The README explicitly warns that v2.0+ contains breaking changes and this repository is being archived, forcing users to upgrade cautiously and potentially refactor existing GraphQL queries.

Complex Setup Chain

Requires both WPGraphQL and ACF plugins as dependencies, and installation isn't available on WordPress.org, necessitating manual downloads from GitHub or Composer, adding to initial setup complexity.

Limited Location Rule Support

As admitted in the README, some ACF location rules based on specific context (e.g., individual pages) aren't supported because they don't map cleanly to the static GraphQL schema, limiting flexibility.

Frequently Asked Questions

Quick Stats

Stars618
Forks114
Contributors0
Open Issues0
Last commit1 year ago
CreatedSince 2019

Tags

#hacktoberfest#api#headless-wordpress#graphql#wpgraphql#wordpress-plugin#acf#custom-fields#wordpress

Built With

W
WordPress
P
PHP

Links & Resources

Website

Included in

WordPress-Gatsby284
Auto-fetched 1 day ago

Related Projects

WPGraphQL for WooCommerceWPGraphQL for WooCommerce

Add WooCommerce support and functionality to your WPGraphQL server

Stars704
Forks146
Last commit19 days ago
WPGraphQL JWT AuthenticationWPGraphQL JWT Authentication

Authentication for WPGraphQL using JWT (JSON Web Tokens)

Stars362
Forks79
Last commit3 months ago
WPGraphQL GutenbergWPGraphQL Gutenberg

Query gutenberg blocks with wp-graphql

Stars305
Forks60
Last commit1 year ago
WPGraphQL for SEOPressWPGraphQL for SEOPress

This is an extension to the WPGraphQL plugin for Yoast SEO

Stars231
Forks48
Last commit24 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub