Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

ACF number field bug #22

Open
TylerBarnes opened this issue Jan 17, 2019 · 0 comments
Open

ACF number field bug #22

TylerBarnes opened this issue Jan 17, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@TylerBarnes
Copy link
Owner

For the number field default values are stored as integers while entered values are stored as strings. Obviously this isn't good for graphql.
I've brought the bug to the attention of the ACF team and they have a fix on their to-do list.

For now Elliot suggested using a number filter to typecast all number fields as INT.

Elliot replied
-- | --
Hi Tyler
Thanks for the reply.
Yeah, you can use the "acf/format_value/type=number" filter to customize the value returned for the number field.
https://www.advancedcustomfields.com/resources/acf-format_value/

Thanks, 
Elliot 

[email protected]

@TylerBarnes TylerBarnes added the enhancement New feature or request label Jan 17, 2019
@TylerBarnes TylerBarnes added the good first issue Good for newcomers label Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant