Title: Feed for Custom Post Types
Last modified: August 19, 2016

---

# Feed for Custom Post Types

 *  Resolved [moshthepitt](https://wordpress.org/support/users/moshthepitt/)
 * (@moshthepitt)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/custom-post-types/)
 * I’m thinking about playing with custom post types when wordpress 3.0 is out
 * I was wondering: are custom post types included in the RSS feed, or can one create
   an RSS feed for them?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/custom-post-types/#post-1508099)
 * :Q. Is there a way to get a feed that includes a custom post type
    ; Sure, use
   something like: [http://example.com/feed/?post_type=yourposttype](http://example.com/feed/?post_type=yourposttype)
   Also see: [http://core.trac.wordpress.org/ticket/12943](http://core.trac.wordpress.org/ticket/12943)
 *  Thread Starter [moshthepitt](https://wordpress.org/support/users/moshthepitt/)
 * (@moshthepitt)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/custom-post-types/#post-1508109)
 * Thanks!
 *  [rikoona](https://wordpress.org/support/users/rikoona/)
 * (@rikoona)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508450)
 * Hello,
 * Great Information.. thanks
 * I manage to have a category for each post in my custom post type.
 * I also manage the display to filter it with each category on the page.
 * Is it possible to display all post in a post type with a specific category on
   a RSS Feed?…
 *  [rikoona](https://wordpress.org/support/users/rikoona/)
 * (@rikoona)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508451)
 * **Got it…..**
 * **Used this to include all post from all post types:**
 *     ```
       function myfeed_request($qv) {
       	if (isset($qv['feed']))
       		$qv['post_type'] = get_post_types();
       	return $qv;
       }
       add_filter('request', 'myfeed_request');
       ```
   
 * **Taken from: **[http://core.trac.wordpress.org/ticket/12943](http://core.trac.wordpress.org/ticket/12943)
 * Pheeew…
 *  [lukeshumard](https://wordpress.org/support/users/lukeshumard/)
 * (@lukeshumard)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508455)
 * This didn’t work for me for whatever reason.
 * Here is what I pasted in my `function.php` file in my theme.
 *     ```
       add_filter('request', 'myfeed_request');
   
       function myfeed_request($qv) {
       	if (isset($qv['feed']))
       		$qv['post_type'] = get_post_types();
       	return $qv;
       }
       ```
   
 * Does this need to go in the RSS Include Pages plugin?
 * I’ve never worked with feeds or RSS files before, so any help in getting this
   going is greatly appreciated. Thanks!
 *  [romanczar](https://wordpress.org/support/users/romanczar/)
 * (@romanczar)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508459)
 * Hm… doesn’t work for me. Still the feed only contains the post_type “posts”, 
   but no custom ones. I also tried to use an array instead of get_post_types(),
   but this didn’t help either…
 *  [rikoona](https://wordpress.org/support/users/rikoona/)
 * (@rikoona)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508460)
 * Hey There,
 * If this solution
 *     ```
       function myfeed_request($qv) {
       	if (isset($qv['feed']))
       		$qv['post_type'] = get_post_types();
       	return $qv;
       }
       add_filter('request', 'myfeed_request');
       ```
   
 * won’t work for you, then you can use a helper created by Matt Wiebe, works like
   a charm, it includes rss, pagination for custom post types etc.
 * you can get it
    [here](http://somadesign.ca/wp-content/uploads/downloads/2010/05/sd_register_post_type.1.3.php_.txt)
 * and put it somewhere on the theme directory and include it on the functions.php
 * instead of **register_post_type**, use **sd_register_post_type** to register 
   a custom post type,
 * cheers,
 *  [donalyza](https://wordpress.org/support/users/donalyza/)
 * (@donalyza)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508485)
 *     ```
       function myfeed_request($qv) {
       	if (isset($qv['feed']))
       		$qv['post_type'] = get_post_types();
       	return $qv;
       }
       add_filter('request', 'myfeed_request');
       ```
   
 * I use this code and it worked! I have one issue, I have several post type and
   I want to exclude one of my post type. I appreciate your help.
 * Thanks
 *  [Syed Balkhi](https://wordpress.org/support/users/smub/)
 * (@smub)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508486)
 * You can do it like shown in this tutorial:
 * [http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-post-types-to-your-main-wordpress-rss-feed/](http://www.wpbeginner.com/wp-tutorials/how-to-add-custom-post-types-to-your-main-wordpress-rss-feed/)
 *  [Marlon Amâncio](https://wordpress.org/support/users/marlonlamancio/)
 * (@marlonlamancio)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508556)
 * None of that include the custom post types in my main feed rss. Still the feed
   only contains the post_type “posts”, but no custom ones.
 * Please anyone help me. I’ll be very greatful!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Feed for Custom Post Types’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [post_type](https://wordpress.org/support/topic-tag/post_type/)
 * [wordpress 3.0](https://wordpress.org/support/topic-tag/wordpress-3-0/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 8 participants
 * Last reply from: [Marlon Amâncio](https://wordpress.org/support/users/marlonlamancio/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/custom-post-types/#post-1508556)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
