• Resolved wiredjlee

    (@wiredjlee)


    Hello,

    First off, I’d like to thank you for this amazing plugin! I’ve ran into an issue where the [logout] and [edit-profile] shortcode doesn’t work together in the same page. Any clue as to why I’m experiencing this issue? When the [logout] button gets injected, automatically I can’t access the same page with the [edit-profile]. Hope this makes sense.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi wired,

    The [logout] shortcode immediately logs you out as soon as you visit the page on which it is placed. It is for this reason that it should be kept on its own blank page.

    To achieve what you want, what you could do is remove the [logout] shortcode from the page with the [edit-profile] shortcode on it. Then create a new blank page and place the [logout] shortcode on it. Then, on the page with the [edit-profile] shortcode, you could put a link to the page with the [logout] shortcode on it, so, when someone clicks that link, they are logged out.

    Thread Starter wiredjlee

    (@wiredjlee)

    Hi EtoileWebDesign,

    Thank you for the prompt response and suggestion. I ended up with the exact provided solution above yesterday and it works as expected! I also forced a redirect to the home page.

    For whoever is curious of the solution. I added the following code to my sign out page php file:

    echo do_shortcode('[logout]');
    
    wp_redirect(home_url());
    exit;
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin Shortcode Conflict’ is closed to new replies.