Latest Tech and Tips

How to Make a Separate RSS Feed for Each Custom Post Type in WordPress

0

Everyone is using Custom Post Types in their new WordPress websites as a result of that is a very highly effective characteristic. One of our customers requested us how can they create a separate RSS feed for a particular customized put up kind in WordPress. In this text, we can be answering that query.

You would suppose that it require a lot of coding, but it surely doesn’t. It works similar to creating a separate RSS feed for every class in WordPress. You can merely kind this URL:

http://www.yoursite.com/feed/?post_type=book

Just change the post_type title to the one that you really want to create a separate RSS feed for. Are you trying to take it to the following degree and make it for a particular customized put up kind and customized taxonomy? Well that’s not laborious in any respect both:

http://www.yoursite.com/feed/?post_type=book&genre=romance

As you possibly can see in the code above, that style can be the customized taxonomy, and romance can be the tag when you could name it that. You can create a button in your sidebar to hyperlink to that. You may hyperlink this feed and create a separate feedburner feed for it.