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 method to get the meta value on BeforeDataFetch when changing order #22

Open
walisc opened this issue Aug 29, 2019 · 0 comments
Open
Assignees
Milestone

Comments

@walisc
Copy link
Owner

walisc commented Aug 29, 2019

Currently the BeforeDataFetch method allows you to modify the query. When using order by you need to use the correct meta_value for the field, which is {postTypeId}_{fieldId}_value_key. You need to create a method that get this correct value. May post->GetFieldDbKey().

Also the documentation is wrong on this, Need to update it

Also linked to #13

@walisc walisc self-assigned this Aug 29, 2019
@walisc walisc added this to the v2.0.0 milestone Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant