multiple custom post types by category
First time posting so please forgive me if I am posting in the worng section.
I trying to write a query that will recover all posts including custom post types for a particular category.
I have tried the following but it does not seem to bring back the expected data, I am running the query in archives.php which part of “simon-wp-framework” theme.
$custom_posts = new WP_Query(array(‘category’ => trim($_REQUEST[‘cat’]),’post_type’=> array( ‘post’, ‘analysis’, ‘reports’, ‘videos’)));
Many thanks in advance for your help
- The topic ‘multiple custom post types by category’ is closed to new replies.