Anyone have any advice on duplicating my RSS 2.0 feed? Basically, I need a separate version for a site that will be syndicating my posts. So my first task is just to duplicate the feed. Then I'll worry how to add their custom crap. ;) Thanks!
Anyone have any advice on duplicating my RSS 2.0 feed? Basically, I need a separate version for a site that will be syndicating my posts. So my first task is just to duplicate the feed. Then I'll worry how to add their custom crap. ;) Thanks!
OK, here's my thought - correct me if I'm wrong. :)
I copy wp-rss2.php as wp-custom-rss.php. Now how do I craft an URL or make WP do it for me? For example, the address I give out for feeds is http://www.domain.com/feed. How would I end up with something like http://www.domain.com/custom-feed?
Thanks!
the same way you ended up with the first example: http://www.domain.com/feed
Thats done using rewrite rules, externally or internally, you decide.
The first example was given to me by WordPress I believe. But even when I tried http://www.domain.com/?feed=custom-feed nothing comes up. I can get to it via http://www.domain.com/wordpress/wp-custom-feed.php but read in a previous thread that is not the ideal method. I feel like I'm missing something, that I need to tell some other file where to find my new feed to publish it right.
You can either create a plugin to do the rewrite or you can do it in your .htaccess.
Look a this:
http://www.village-idiot.org/specialkl.php
thats just a copy of my wp-rss2.php file
If I want to make that
http://www.village-idiot.org/specialfeed .. all I have to is edit my .htaccess and use the proper rewrite rule.
RewriteRule ^specialfeed/?$ specialkl.php [QSA,L]
and its done:
http://www.village-idiot.org/specialfeed
---
...that I need to tell some other file where to find my new feed to publish it right.
Of course you do.. but that has nothing to do with any of this. If you were submitting a feed to anywhere you would probably have to submit a url to the feed. Thats pretty commonplace.
Thank you for explaining it to me. It sounds like it's purely for looks, right. So I should be fine just giving them this address: http://www.domain.com/wordpress/wp-custom-feed.php ?
if that works, absolutely :)
This topic has been closed to new replies.