WordPress.org

Ready to get started?Download WordPress

Forums

Secret Content
redirect visitors to login page (4 posts)

  1. ellebillias
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/secret-content/

  2. maxemil
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.