Timeline for date_query is showing duplicate results
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 27, 2015 at 18:38 | answer | added | Pieter Goosen | timeline score: 1 | |
Sep 26, 2015 at 14:04 | comment | added | ImNotAwesome | -2days or 2 days ago are valid time frams for it. I even tried -72 hours or 72 hours ago. the output still the same. | |
Sep 26, 2015 at 7:28 | comment | added | Pieter Goosen |
Unfortunately I cannot post a solution now, but do one query, look at relative time/date frames valid in a date_query (PHP)
|
|
Sep 26, 2015 at 7:24 | comment | added | ImNotAwesome | since you asked about 3 loops I did 2 loops and thought it was because of that. I did 2 loops and the problems is still there, from yesterday to 2days ago only. | |
Sep 26, 2015 at 7:22 | comment | added | Pieter Goosen | Don't always trust what the codex says, ;-). That specific page contains a lot of crap. I would do one loop and get all posts from the required couple of days | |
Sep 26, 2015 at 7:21 | comment | added | ImNotAwesome | @PieterGoosen I'm still not used to for loop, and I saw from codex.wordpress.org/Class_Reference/WP_Query#Multiple_Loops that its possible and I just did. | |
Sep 26, 2015 at 7:03 | comment | added | Pieter Goosen | Why are you running 3 separate loops? | |
Sep 26, 2015 at 6:08 | history | asked | ImNotAwesome | CC BY-SA 3.0 |