• I have several custom post types and am having trouble getting the query to work the way I want. I can query a single post type and category just fine. When I try to query just the category of all post types I can not get any results.

    My Query-
    $query = new WP_Query(‘category_name’=>’available-models’)

    I have also tried
    $query = new WP_Query(‘cat’=>’43’)
    What could I be doing wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘query all post types for category’ is closed to new replies.