[resolved] sticky post viewable to unregistered users (5 posts)

  1. c0c0c0
    Posted 9 years ago #


    I have locked down most of my blog using the view level plugin, I would like to make a post viewable only to unregistered users telling them it is an active blog and to register to view content blah blah. I want this post to disapear when someone is logged in to the blog. How would I go about doing this? Is there something I can put into the loop using an else if statement or something?

  2. Kafkaesqui

    Posted 9 years ago #

    global $user_identity;
    if( !$user_identity ) :

    Do this if visitor is not logged in.

    <?php endif; ?>

    It's a regular question that pops up:


    EDIT: What the hey, I'll point out a plugin of mine, as well:


    Its 'To registered users' option, when turned off, displays a message to anyone not logged in.

  3. c0c0c0
    Posted 9 years ago #

    Awesome! Thanks!

  4. c0c0c0
    Posted 9 years ago #

    Kafkaesqui I have your plugin and active, and it is perfect for what I need to use, however, I have it on my left hand collumn, and it is not fitting into that collumn, is there a way I can modify the width? I tried using the div tag for the collumn, and no joy. If this was designed to be put just outside the loop, then I will put it there.

  5. c0c0c0
    Posted 9 years ago #

    Never mind, I fixed it by using content only, thank you again!!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.