Secret Content
redirect visitors to login page (4 posts)

  1. ellebillias
    Posted 3 years ago #

    i've installed your plugin, but if I'm not logged in it redirects me to error 404 page, instead it should redirect to login page, how can this be done?


  2. maxemil
    Plugin Author

    Posted 2 years ago #

    Happy to hear it works as intended, if you are not logged in, there shouldent be any traces of the existance of the content.

    One way to do this, is to let your themes 404 page include a loginform if the visitor is not logged in - or simply write a message on the 404 template, that "oops did you expect more content here? try logging in first!"

  3. ellebillias
    Posted 2 years ago #

    But I only want a login form on secret pages - not every error page. I think I'll look for another solution. Thanks

  4. maxemil
    Plugin Author

    Posted 2 years ago #

    The way the plugin works is to remove the content from the wordpress query if the visitor is not logged in.

    I would be able to do a "if content is marked secret, show a page anyways, but with a login form instead" .. Ill put it on the requests list, no timeframe right now though :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Secret Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.