Timeline for How can I use order_by to order by two meta_keys without excluding posts that don't have those keys initialized?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 7, 2020 at 15:31 | answer | added | nicolasDevDes | timeline score: 2 | |
Jun 26, 2020 at 0:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 25, 2020 at 14:08 | answer | added | dodo254 | timeline score: 0 | |
Mar 10, 2020 at 8:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 23, 2020 at 5:33 | answer | added | KFish | timeline score: 0 | |
Dec 20, 2019 at 10:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 22, 2019 at 9:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 14, 2019 at 15:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 18, 2017 at 7:14 | history | tweeted | twitter.com/StackWordPress/status/887208851040215041 | ||
Jul 18, 2017 at 3:55 | history | edited | Johansson | CC BY-SA 3.0 |
added 7 characters in body
|
Jul 18, 2017 at 3:54 | answer | added | Johansson | timeline score: 0 | |
Jul 18, 2017 at 3:21 | comment | added | hwl |
the meta query is, as you suspect, limiting the posts returned. I believe its actually doing an INNER JOIN between the wp_posts and wp_postsmeta tables where the IDs match AND the meta_key exists. If you var_export() the query you can see it, and the orderby applied at the end. I suppose you could force a popularity and/or stickied default value(s) at post creation though; a 0 and false , respectively.
|
|
Jul 18, 2017 at 2:27 | review | First posts | |||
Jul 18, 2017 at 3:21 | |||||
Jul 18, 2017 at 2:26 | history | asked | Blaine Lafreniere | CC BY-SA 3.0 |