Support » Plugins and Hacks » password protect feeds

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    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');

    Great – This is real thing –

    One question – – will this disappear if I upgrade – whatever I upgrade – blog or my theme?

    Spel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘password protect feeds’ is closed to new replies.