• Hi,

    I’m trying to use theme_my_login function ( https://docs.thememylogin.com/category/developer-documentation/ ) to add a login form to the header. The code is;

    <?php               
    $theme_my_login_args = array(
        'instance' => '999',
        'default_action' => 'login',
        'show_title' => false
    );
    theme_my_login( $theme_my_login_args );
    ?>

    The problem is instance is not working. The form’s id is always “theme-my-login1”. All other options are working. I also tried to use “theme-my-login” shortcode (with do_shortcode function) but the result is the same. Do you have any idea about why it is not working? Any help is appreciated ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    The instance actually can’t be passed, it is auto-assigned. The first instance, 0, is always reserved as the main instance. So, you pretty much guess that your header instance will always be 1.

    Thread Starter egemenerd

    (@egemenerd)

    But when I add a form to a page with the shortcode (from post edit page), instance is working. If I add the same shortcode directly to the page with “do_shortcode”, it is not working. Isn’t that weird?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘theme_my_login function instance issue’ is closed to new replies.