views:

14

answers:

1

I created a custom post type called article. I can create articles and everything is working fine. However, I have questions on the feeds.

1) How do I see the latest articles I created in a feed?

2) How do I see all the blog posts and articles all in one feed?

+1  A: 

You can add this code to your functions.php file

function myfeed_request($qv) 
{
   if (isset($qv['feed']) && !isset($qv['post_type']))
   {
     $qv['post_type'] = get_post_types($args = array(
                'public'   => true,
                '_builtin' => false
     ));
     array_push($qv['post_type'],'post');
     return $qv;
   }
}
add_filter('request', 'myfeed_request');

Check out this page here for more details

Paul Sheldrake
Giljed Jowes
This url solution works only on IIS and Apache, I wonder why it does not work on my nginx machine... :(
Giljed Jowes
You solution does not work for me :( Does it have to do with the webserver being used. Mine is nginx.
Giljed Jowes
I found out the reason why it is not working. I switched to Apache and now it works..thanks!
Giljed Jowes