• Resolved jkmstr101

    (@jkmstr101)


    I am working on setting up interoffice website using wordpress. We want to restrict it by login, and I want to setup RSS feed readers on all company computers to notify the staff of new posts going live. However, with this plugin enabled, the RSS feeds will not pull in any information unless the user is logged in. Is there any way to get around this? There could be a chance that the user is not logged in on the device that they are using the reader from.

    https://www.ads-software.com/plugins/wp-force-login/

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    You could add a conditional statement to the v_forcelogin() function that adds an exception for RSS feeds, similar to this:

    https://gist.github.com/kevinvess/7b4478446bcec77b4916#file-wp-force-login-xmlrpc-php-L6

    Keep in mind, by adding an exception for RSS feeds, you’re allowing public access to your content via the RSS feed because it won’t require a login.

    If your office computers are all connected to the same network with a static IP address, you could add a conditional statement to the v_forcelogin() function that adds an exception for anyone visiting the site from your office network, similar to this:

    https://gist.github.com/kevinvess/bf965291460eee1e6e2d#file-wp-force-login-alt-php-L6

    However, adding an exception for users on your office network will allow anyone connected to that network access to the entire site without logging in; unless you combine the network exception with the RSS feed exception.

Viewing 1 replies (of 1 total)
  • The topic ‘Force Login prevents RSS unless logged in’ is closed to new replies.