Support » Plugin: Separate Login » Displaying Content to both Logged In and Not Logged In

  • Resolved torquilcorkerton


    Hello, Christian.

    I’m now in the process of finally implementing the plugin into a proper website rather than just my test one, and I’ve got another question.

    I have some static content on a page that I want to display whether or not a user is logged in, with the login panel shortcode at the bottom.

    If I do have this content outside [seplog] shortcodes, the [seplog] tagged content appears at the top, so I got round this by having my static content inside [seplog_show_if_not_logged] shortcodes, but in order for it to still display to a logged in user, I have to have the same content twice – inside [seplog_show_if_not_logged] shortcodes and again inside [seplog_show_if_logged] shortcodes.

    Is there a trick to getting this working correctly, such as nested shortcodes, or would it be possible for another pair of shortcodes to be implemented for content that’s to be visible all the time, or even to be able to control the placement of [seplog] content relative to content outside shortcodes?

    Many thanks,


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christian Gatti


    Hi torquilcorkerton,
    I don’t know why and how, but I missed out your request.. I’m really sorry!
    For now I can tell you that I understand the issue, soon I will reply with a solution.

    Plugin Author Christian Gatti


    Please, open this file with notepad:

    Copy and paste the code below at the end of the content of that file, just before the php closing tag (“?>”)

    add_shortcode( 'seplog_show_to_everyone', 'seplog_show_to_everyone' );
    function seplog_show_to_everyone( $atts, $content = null ){
    	echo '<div id="seplog-show-to-everyone">'.do_shortcode($content).'</div>';

    The above function allows you to use a new shortcode:

    [seplog_show_to_everyone]your content here[/seplog_show_to_everyone]

    As you can easily imagine by the name of the new shortcode, the content inside is shown to everyone.


    Plugin Author Christian Gatti


    Release includes a new shortcode (“[seplog_show_to_everyone]”) useful to display content to everyone, regardless of user is logged or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying Content to both Logged In and Not Logged In’ is closed to new replies.