Timeline for Foreach displays from last to first
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 26, 2014 at 22:36 | history | edited | Joey Yax | CC BY-SA 3.0 |
fixed orderby. removed post status
|
Jun 26, 2014 at 22:36 | comment | added | Joey Yax |
@ birgirie. You're correct, orderby should be 'date'. Updated. Re post_status : I copy/pasted the query posted by the OP- figured the null value wasn't hurting anything so left it alone. It should probably just be removed since WordPress will select the appropriate status anyway: github.com/WordPress/WordPress/blob/master/wp-includes/…
|
|
Jun 26, 2014 at 22:08 | vote | accept | Mateusz Winnicki | ||
Jun 26, 2014 at 22:04 | comment | added | Mateusz Winnicki | Hm, but if I use post date, won't It show from the last one to the first ;) ? | |
Jun 26, 2014 at 21:54 | comment | added | birgire |
I don't think post_date is a possible order field, I think you meant date . I also wonder why you use post_status as null instead of inherit . But I agree with you on the method (+1) ;-)
|
|
Jun 26, 2014 at 21:41 | history | answered | Joey Yax | CC BY-SA 3.0 |