Thank you that was exactly what I needed!
I’m trying to use wp_query in a plugin. One that allows me to export data to csv and I wanted to use the query to combine all the bbPress custom post types. Which I was able to do, but I also wanted to add a filter on the date and not sure how to do that.
This worked here to get ALL the forum data exported:
‘post_type’ => array) ‘forum’,’topic’,’reply’ )
The plugin just gave me a field to enter that so I didn’t need the rest of the php code.