A Separate Feed
Posted January 16th, 2007 @ 11:32am by Erik J. Barzeski
At The Sand Trap, we published a private "full entry" feed so that GolfWRX (one of our partners) could post the content to their forums. Our general subscribers just get the excerpts, of course, so they visit the site and see the ads (and to keep bandwidth down).
In MovableType, of course, I just created a separate template, published it to the hidden, password-protected directory, and that was that.
Can WordPress be made to publish a single, separate feed (RSS2 is fine)? If so, how?
Posted 17 Jan 2007 at 1:07am #
No, not without a plugin or making a copy of
wp-rss2.php
.Just do full content feeds and have FeedBurner mirror your feed. Then you get the best of both worlds -- full content and lower bandwidth than you're using now. 🙂
Posted 17 Jan 2007 at 1:11am #
[quote comment="38551"]Just do full content feeds and have FeedBurner mirror your feed. Then you get the best of both worlds -- full content and lower bandwidth than you're using now. :)[/quote]
For a variety of reasons, FeedBurner isn't an option for TST. I may make a separate copy of wp-rss2.php and hack up feed.php or something to point to my copy.
Posted 17 Jan 2007 at 2:26am #
Or just link directly to your new file without editing feed.php. 😉
Ex: http://nslog.com/wp-rss2.php
Posted 17 Jan 2007 at 9:42am #
[quote comment="38555"]Or just link directly to your new file without editing feed.php. ;-)[/quote]
The problem with that, it seems, is the same as problem two mentioned here. Any attempts to create a private feed (with a name like "
lakjdfadflk.php
") shows an empty feed.I copied
wp-rss2.php
to a new oddly named file. I edited thefeed=
line in that file to match the filename and added a new case towp-feed.php
's switch just in case. Then I'd load up the file and see an empty feed.I attempted to backport the patch mentioned in the above post to WP 2.0.7, but it seems other changes have been made to 2.0.8, because the diff didn't change anything when hitting even the standard
wp-rss2.php
. The same thing occurs - an empty feed.Posted 17 Jan 2007 at 9:49am #
No, no. Here, save this as your crazy named file: http://nslog.pastebin.com/861284
I just deleted the part to check to see if the excerpt should be displayed or not and forced it to always show the full content.
Posted 17 Jan 2007 at 10:08am #
[quote comment="38579"]No, no. Here, save this as your crazy named file… I just deleted the part to check to see if the excerpt should be displayed or not and forced it to always show the full content.[/quote]
I know PHP. I did the same things you did. It displays an empty feed, as I said it did. The extra work I did was an attempt to work around the bug.
It works for NSLog(); - it doesn't work for The Sand Trap. It behaves exactly the same way as the bug I linked to above (and wrote about before). Perhaps you didn't see the link: http://nslog.com/2007/01/10/sand_trap_misdirection_and_empty_feeds/.
Posted 17 Jan 2007 at 10:11am #
Oh, well I can't help you with a misbehaving server. 🙂
Posted 17 Jan 2007 at 10:33am #
[quote comment="38583"]Oh, well I can't help you with a misbehaving server. :)[/quote]
Has nothing to do with the server. TST and this site are hosted on the same server. It's a known bug.
Posted 17 Jan 2007 at 8:36pm #
But what's the difference between the two sites? Why would it perfectly fine here as well as on my PC and not on your other site?
Posted 17 Jan 2007 at 10:01pm #
[quote comment="38624"]But what's the difference between the two sites? Why would it perfectly fine here as well as on my PC and not on your other site?[/quote]
Did you read the description of the bug? It clearly explains that sites which use permalinks containing "%category%" fail to return the proper feed. This site (NSLog();) does not employ "%category%"; The Sand Trap does.
It has nothing to do with "your PC."
Posted 17 Jan 2007 at 11:27pm #
[quote comment="38635"]Did you read the description of the bug?[/quote]
No, not until just right now. I had only read this post 'cause you linked me to it and not the other one you linked to (was busy at the time).
I also don't see what pretty permalinks have to do with a feed working right or not when you directly access the file, but then again, I'm not a developer of WordPress, so I don't know all of WP's quirks, especially when it comes to pretty permalinks. 😉
Posted 29 Jan 2007 at 11:07pm #
2.1 doesn't seem to fix this problem. I copied
wp-rss2.php
, renamed it "full_feed.php," and get an empty feed.The bug itself seems to be fixed - visiting
wp-rss2.php
itself works now.