You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Hello,
Trying to modify the link URL value to be relative links. This way we can work locally using the same dev database.
The issue is WPGraphQL ACF is ignoring the stand acf/format_value filter https://www.advancedcustomfields.com/resources/acf-format_value/
We merged this feature in the past, then reverted it because it causes other problems.
ACF can return differently formatted values for a field (i.e. sometimes it will return an ID, sometimes an object, etc), but for ACF we have to return strongly typed values. i.e. an object always needs to be an object, a string always needs to be a string, etc.
Because of that, we can't centrally support this filter.
Hello,
Trying to modify the link URL value to be relative links. This way we can work locally using the same dev database.
The issue is WPGraphQL ACF is ignoring the stand acf/format_value filter
https://www.advancedcustomfields.com/resources/acf-format_value/
code in theme file:
This works as expected in a native wordpress site. It strips out the site_url and returns a relative link.
Thanks for the help and great plugin!
The text was updated successfully, but these errors were encountered: