By default WP seems to display all posts of all types in the main RSS feed.
You have to add a post_type query variable to show post of a certain type…
So how can I turn this:
http://site.com/feed/?post_type=book
into
http://site.com/feed/books/
?
And if possible rewrite http://site.com/feed/
to http://site.com/feed/blog/
, which should display only normal posts…
If you set
'has_archive' => TRUE
inregister_post_type()
the post type will have its own feed on/books/feed/
and its items are not included in the main feed.Example plugin
Create one post, publish and view it. If you go up one level to
/wpse13006/
now, youâll find the feed at/wpse13006/feed/
. The post will not show up in the main feed.