[plugin Batch Categories] Query posts on Date
-
Hello,
I rewrite Rob Millers Batch Post Category Move/Removed plugin and like to restict post-results to a specific date / date range
WordPress construct a query string like followed,
This is the string $q for $query->query($q);
“paged=1&posts_per_page=15&orderby=post_date&order=desc&post_type=post&category_name=Neuigkeiten&post_date=’2012-08-30′”With and without quotes on the date
it follows with:
$query = new WP_Query;
$posts = $query->query($q);The query result works with all conditions except the date.
When I try something like date >=, then I get back the name with >
Looks like there is being done a split on = or something like that.What? I am doing wrong, or where can I found the right information?
I found on Internet a lot information, but the solution are not very useful.
It should be something simple. Al solutions don’t cover the whole thing, while it is so simple.I hope someone can help me out.
Best solution is of course that WordPress self is able to batch delete posts categories and not just put a new category to a post.
With regards,
Cees Stoltenkamp
- The topic ‘[plugin Batch Categories] Query posts on Date’ is closed to new replies.