Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I tested the code and it’s working correctly on my end, logged in or out.

    – Can you display any normal text with [isnt login]?
    – Could you try the same code on another site to see if it works?
    – Does it work with [is logout]?

    If it’s only one specific site with the issue, maybe the theme or another plugin is causing it. The check for logged-in status is very simple, using a native WordPress function, so it’s hard to say why it’s not working in your situation.

    Thread Starter flodi

    (@flodi)

    Ok, I’ll do the check.

    It could be that it works only with the 1st condition.

    I’m using the Divi theme from Elegant Themes and a lot of plugins 🙂

    Thread Starter flodi

    (@flodi)

    Update:

    Tried exchanging the order with this:

    [isnt login] test [/isnt]
    [is login] [comment form] [/is]

    but still the is login works, the isnt login does not work (is logout does not work either).

    Thread Starter flodi

    (@flodi)

    Dho

    To tell the true..

    [isnt login] test [/isnt]
    [is login] [comment form] [/is]

    works in both cases, but with

    [is login] [comment form] [/is]
    [isnt login] test [/isnt]

    works only is login

    Plugin Author Eliot Akira

    (@miyarakira)

    Strange! So the order makes a difference.. I tried on a test site, and both work the same.

    I’m looking at the code for this shortcode, but it’s so simple that I can’t see any room for error. The only thing I can think is that the native function is being changed somehow by the theme or another plugin..

    Do you have a membership plugin that could be affecting the login status?

    Other than that, I would try turning off different plugins to see what could be causing the issue.

    Thread Starter flodi

    (@flodi)

    That it is a difficult test, the site it is in production 🙂

    BTW, the plugins that involves user status is only WPFront User Role Editor.

    Thanks anyway.

    Plugin Author Eliot Akira

    (@miyarakira)

    Thanks for getting back to me on this issue. I tried again the exact same code you have, and confirmed that they both work on my test site – so I think it must be something specific to your site setup.

    Looking at the code you’re using, it seems maybe the comment form is related to the issue. Could you try testing without it? For example:

    [is login]Logged in[/is]
    [isnt login]Logged out[/isnt]

    If this works, then we can narrow it down to the comment form. I can’t imagine what could be happening to change the login status though.. But it could help in finding the exact cause.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problem with ISNT and LOGIN’ is closed to new replies.