• Resolved Kyle Klood

    (@kyle-klood)


    I’m currently using <?php echo do_shortcode('[clean-login]'); ?> and <?php echo do_shortcode('[clean-login-register]'); ?> to echo out the clean login forms.

    When I try to login or register the page just reloads into “#”.

    Clearly something is wrong on my end, is there a step I’m perhaps missing?

    In the backend under settings it says that each shortcode is “Currently not used”. Do I need to apply my shortcodes some other way?

    Kind Regards

    https://www.ads-software.com/plugins/clean-login/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Alberto Hornero

    (@hornero)

    Could you share your URL?

    “Currently not used” because there are no page/post which includes the shortcode, you’re including these through code. Why not as a common shortcode instead of coding it?

    Alberto.

    Thread Starter Kyle Klood

    (@kyle-klood)

    Hi thank you for your prompt reply.

    I am using this on my home page, not a dedicated page. The content is currently being used for something else and so I would like to use do_shortcode().

    I would also like to use it for both login and registration.

    Your plugin works fine if I use the shortcode inside the content but when using do_shortcode() it doesn’t complete the login or registration.

    Do you have any tips on perhaps I could edit your plugin to get it to work this way?

    Plugin Author Alberto Hornero

    (@hornero)

    Hi Kyle,

    Just place the shortcode onn these pages, save it and then remove it, with this you’re notifying to the plugin the situation of the shortcodes. Try it and tell me.

    Alberto.

    Plugin Author Alberto Hornero

    (@hornero)

    Any news?

    I had this same issue. Putting the shortcode on the page worked. Removing it again does not. Maybe adding it with a “regular” shortcode and then hiding it with CSS would work?

    I have a bit of an edge case where it’s working fine for me (single login page that checks to see if you’re logged in, then echoes the login form. When logged in, it shows the_content(), where the “regular” shortcode is).

    Plugin Author Alberto Hornero

    (@hornero)

    Yes, exactly. This is the cleanest way to do that!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘shortcode "Currently not used" when using do_shortcode’ is closed to new replies.