Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • If all you want is to require visitors to be registered users in order to view any part of the site, there’s a great plugin to do that:

    http://dev.wp-plugins.org/browser/registered-only/

    It’s nifty — the plugin consists of about two lines of actual code, and works just as one would hope. This is more in answer to the original poster’s question than the intranet followups, of course — for those you’ll most likely need custom code.

    I was just searching for an answer for this issue, and found this workaround for anyone else with the same problem:

    add_filter(‘the_content’, ‘my_filter’);

    function my_filter($content){
    global $doing_rss;
    if(!$doing_rss)
    return $content;

    //do your rss-only filtering here
    }

    A couple months late, I know, but I ran into the same problem. As far as I can tell the_content_rss doesn’t actually exist for some reason, but you can work around this by adding a filter for ‘the_content’ with this at the top:

    function my_filter($content){
    global $doing_rss;
    if(!$doing_rss)
    return $content;

    //do your rss-only filtering here
    }

Viewing 3 replies - 1 through 3 (of 3 total)