Timeline for Why does wp_query only display the most recent post when using order ASC?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 17, 2023 at 9:54 | comment | added | Tom J Nowell♦ |
😞 you can use a WP_Query to fetch all the posts and switch the meta over, this isn't the only reason to migrate your dates from a number to a date, and fixing it isn't as hard or as big a task as it might seem.
|
|
Jan 16, 2023 at 22:21 | vote | accept | hal | ||
Jan 16, 2023 at 22:20 | comment | added | hal | Tested: it works the way I suggested. Thanks again! | |
Jan 16, 2023 at 21:53 | comment | added | hal | Thank you very much, you are obviously right. However, I can't give up hoping that I still could use my existing data, as comparing the dates as numbers in my head would return the same results? Of course using your meta_query method, instead of filtering in php. Or am I completely wrong? | |
Jan 16, 2023 at 16:02 | history | edited | Tom J Nowell♦ | CC BY-SA 4.0 |
added 1208 characters in body
|
Jan 16, 2023 at 15:56 | history | answered | Tom J Nowell♦ | CC BY-SA 4.0 |