Title: Multiple Post Types
Last modified: August 21, 2016

---

# Multiple Post Types

 *  [devinfd](https://wordpress.org/support/users/devinfd/)
 * (@devinfd)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/multiple-post-types/)
 * I am trying to run a query to select multiple post types. I have a post type 
   called update-history and would like to select it and the post post type.
 * I’ve tried to achieve this a few different ways and can not figure it out, if
   at all possible. I do have in my functions.php file a filter for pre_get_posts:
 *     ```
       add_filter( 'pre_get_posts', 'my_get_posts' );
       function my_get_posts( $query )
       {
           if ( ( is_home() && $query->is_main_query() ) || is_feed() )
               $query->set( 'post_type', array( 'post', 'update-history' ) );
   
           return $query;
       }
       ```
   
 * but this filter does not seem to be respected by this plugin. Any advice or updates
   would be helpful.
 * [http://wordpress.org/plugins/json-rest-api/](http://wordpress.org/plugins/json-rest-api/)

The topic ‘Multiple Post Types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

## Tags

 * [multiple custom post types](https://wordpress.org/support/topic-tag/multiple-custom-post-types/)

 * 0 replies
 * 1 participant
 * Last reply from: [devinfd](https://wordpress.org/support/users/devinfd/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/multiple-post-types/)
 * Status: not resolved