Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter for get_acf_post and get_acf_posts to bypass ACF formatting logic. #62

Open
Liblastic opened this issue Feb 15, 2018 · 0 comments

Comments

@Liblastic
Copy link
Contributor

Liblastic commented Feb 15, 2018

Sometimes you might want to use ACF fields but you don't want ACF to format data before you handle it. Now this is not possible because format_value has been hard coded for ACF function get_field_object on these lines (See the links below.).
https://github.com/devgeniem/dustpress/blob/master/classes/query.php#L114
https://github.com/devgeniem/dustpress/blob/master/classes/query.php#L288

After changes ACF format_value cloud be true by default but you can change it to false in function $args if you want to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant