• Hi,

    The plugin is working fine but there is a slight bug that if you use two shortcodes it only picks up the first redirect data attribute it finds. e.g

    
      <div id="div-1">
            <?php echo do_shortcode('[fbl_login_button redirect="'.get_site_url().'?facebook-return=false" hide_if_logged="" size="large" type="continue_with" show_face="true"]') ?>
    </div>
    

    and

    <div id="div-2">
            <?php echo do_shortcode('[fbl_login_button redirect="'.get_site_url().'?facebook-return=true" hide_if_logged="" size="large" type="continue_with" show_face="true"]') ?>
    </div>

    #div-1 is a login overlay and #div-2 is a registration overlay. I would like the redirect url to be different depending on whether they were logging in or not as then I can show the newly registered another form. I think it’s because you’re expecting one form only on a page and i have 2 so it’s finding the first instance of .fbl-button and using it for both. Is there anyway I can change this (without altering your plugin)?

    Thanks

Viewing 1 replies (of 1 total)
  • Hi.
    There is not way get the attributes of all the button in a single page. we can only take the attributes of the first button

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Two shortcodes ignores redirect parameter for second short code’ is closed to new replies.