Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need help with wp-query


  • desert-rover
    Participant

    @desert-rover

    I understand the concept of WP_Query but am not anywhere near enough of a coder to write one. I need help writing a query that will call up all the replies in a certain month and year, and include the topic and forum the reply is attached to. Can anyone help me with that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi desert-rover,

    Are you looking for a database query to run directly towards the database ? Or are you looking for a piece of PHP code using bbPress and wordpress functions ?

    Pascal.


    desert-rover
    Participant

    @desert-rover

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar