Forums

[resolved] Is there a 'Log In To View Rest of Post Plugin'? (4 posts)

  1. carly-twisted-barfly
    Member
    Posted 1 year ago #

    My company offers free documents and articles to others - and have recently asked me to make it so that users need to log-in to read them in full. IS there a plug in that could help me with this?

    Thank you.

  2. mayhemuk
    Member
    Posted 1 year ago #

    You can (I think) make any page login required. Then you could use "Exccerpt Editor" to create a snippet which is available on the homepage. So in theory that would do it I guess? Worth a try at least.

  3. carly-twisted-barfly
    Member
    Posted 1 year ago #

    Hey thanks, my friend wrote me an if else statement which says:

    <?php
    if (!is_user_logged_in()){
    the_excerpt();

    }else{
    ?>

    and after the_content, another <?php } ?>

    I'd like a login box, or a link to register underneath the excerpt now... and I've got it exactly how I want it!

  4. carly-twisted-barfly
    Member
    Posted 1 year ago #

    I have also managed to do this - if anybody else needs to - use ajax login plugin and simply add the login function after the excerpt.

Topic Closed

This topic has been closed to new replies.

About this Topic