bb_query: get topics started within a date range?
How do I use bb_query to fetch all topics that were started within a given date range?
Here’s an example found an example of a bb_query code on the bbPress blog:
$topic_query = new BB_Query( ‘topic’,
‘topic_author’ => ‘mdawaffe’,
‘started’ => ‘2007-06′,
‘tag’ => ‘bbpress’,
‘order_by’ => ‘topic_start_time’
$topic_query->results; // Here’s the array of topics the query returned.
This shows how to get topics that where started on June 2007. But what if I wanted to get all topics that were started between June 2, 2007 10:30:49 PM and February 12, 2008 9:02:32 am?
I think I may be missing something totally obvious. Any suggestions? I
- You must be logged in to reply to this topic.