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

v0.5.0

Compare
Choose a tag to compare
@jasonbahl jasonbahl released this 22 Apr 19:26
· 82 commits to master since this release
49bf955

Release Notes

This release focuses primarily on Location Rules and how ACF Field Groups are mapped to the WPGraphQL Schema.

Bugfixes / Chores

  • #174: Typo fix in README. Thanks @pickleat!
  • #175: Fixes problem with return type on Select fields. Thanks @ljanecek!
  • #191: Replaces deprecated acf_get_term_post_id() method. Thanks @sboerrigter!
  • #197: Adds URI to play nice with Github Plugin Updater
  • #235: Updates README to include docs for registering field groups in PHP. Thanks @XAce90!

New Features / Big Changes

LOCATION, LOCATION, LOCATION!!!

This release primarily addresses issues related to Field Group location rules and adding field groups to the GraphQL Schema.

Prior to this release, ACF Field Groups were added to the GraphQL Schema strictly by analyzing the ACF Location Rules for the field group(s) and attempting to map the field group to the Schema.

Some rules are quite nuanced and hard to translate, and in some cases this meant that the Field Group would simply not show up in the Schema, or in other cases the field group wouldn't show exactly where you wanted.

This release brings a new way of mapping ACF Field Groups to the WPGraphQL Schema.

It still uses ACF Location Rules to try and "guess" where in the Schema the field group should show, but now it shows you where it will be and allows you to opt-out of the auto-mapping and set the GraphQL Types the field group should show on manually.

🎥 👉 This video walks through this new functionality: https://youtu.be/VvrZGrcwv0Y

Closes the following issues:


📣 HUGE shout out to @drewbaker @rsm0128 and @funkhaus for putting a lot of time and energy into Location Rule revamp. Would not be where it is without your work!!! 🙌🏻