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

meta_key and meta_query #29

Closed
sboisvert opened this issue Jan 18, 2016 · 8 comments
Closed

meta_key and meta_query #29

sboisvert opened this issue Jan 18, 2016 · 8 comments
Assignees
Milestone

Comments

@sboisvert
Copy link
Contributor

When both parameters are present only meta_key is used, the meta_query part is silently dropped.
The current WP_Query behaviour is to have an exist check on the meta_key that is inside the meta_key property as well as what is defined into meta_query.

Let me know if you think this should be supported and I'll write a patch.

@sboisvert
Copy link
Contributor Author

(just a note, I think meta_key might need to be defined when doing orderby 'meta_value_num' to determine which meta_value to use when sorting.)

@mboynes
Copy link
Contributor

mboynes commented Jan 20, 2016

A patch would be much appreciated 👍. The meta query might need a larger update to bring it up to speed with the latest in core, so if it seems like this is easier said than done and starts to turn into that, let me know and we can collaborate on the larger overhaul.

@mboynes mboynes self-assigned this Feb 26, 2016
@mboynes
Copy link
Contributor

mboynes commented Feb 26, 2016

Quick update here: I'm currently working on this issue and am hoping to have a PR ready today or tomorrow

@mboynes
Copy link
Contributor

mboynes commented Feb 28, 2016

@sboisvert can you (or someone on your team) code review that? ^

@sboisvert
Copy link
Contributor Author

Looks good by me. @philipjohn Do you have any concerns with putting this as the RC release on production?

@mboynes mboynes modified the milestone: 1.0 Feb 29, 2016
@mboynes
Copy link
Contributor

mboynes commented Mar 2, 2016

After speaking with @gibrown and @xyu, we decided to create multiple versions of ES_WP_Query to support different ES versions (See #37). @sboisvert, VIP will need to use the master-1.x branch (I'll make it an official release once I get #35 and #36 merged).

@philipjohn
Copy link

Yep, let's make this our RC.

@sboisvert
Copy link
Contributor Author

Okay pulling master 1.x and pushing it to RC plugins

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

3 participants