eng-le-bert
Member
Posted 5 years ago #
Hi there
I'm currenty using Angsuman's Authenticated plugin to password protect a members only blog.
I'd like to release an members only RSS feed for the blog - I don't suppose this is possible using WordPress?
Would I have to do something like specify access to a certain folder by IP addresses?
Grateful of your help.
Best wishes
E
webcomm
Member
Posted 4 years ago #
is it still not possible to password-protect feeds (or at least feed summaries) in WordPress? Is there a way I can disable summaries in the feeds so only the title is visible if the post is password-protected?
blake213
Member
Posted 4 years ago #
Not sure if this will help with your issue, but I figured out how to completely remove password protected posts from the feeds (if they are password protected, I don't think they should ever be in the feed).
Paste this code in your theme's functions.php:
function filter_private($content) {
if(is_feed()) {
for($i = 0; $i < count($content); $i++) {
if(strlen($content[$i]->post_password) > 0) {
array_splice($content, $i, 1);
}
}
}
return $content;
}
add_filter('the_posts', 'filter_private');
armyinfoforum
Member
Posted 4 years ago #
Great - This is real thing -
One question - - will this disappear if I upgrade – whatever I upgrade – blog or my theme?
Spel