At the risk of sounding completely ridiculous, I’m posting this question here as the nature of my query doesn’t seem to help me much from google.
My WordPress default RSS feeds makes use of post excerpt this feed is accessed via www.mydomain.com/feed
I have a requirement to make another RSS feed that is the full text. How can create an additional RSS feed (that is private/given to only trusted parties)? Preferably using a function but a plugin (as a last resort).
Here is how to create a custom feed:
first create a new file in your theme’s directory , name it
your-custom-feed.php
and put this code insidethen add a simple function to call that template file using
do_feed_$hook
Now when you access
http://yoursite.com/?feed=mycustomfeed
you will get a full text feed, no mater what you define inside WordPress admin.Bonus
if you want to create a rewrite rule for your custom feed so your url could be:
http://yoursite.com/mycustomfeed.xml
as well as a
http://yoursite.com/feed/mycustomfeed/
add this code to your functions.php file:
//create feed rewirte rule
Try something like this (not tested, simplified from more complex code):