Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The shortcode you are using is intended for use in the main content area (hence the tag “page”). If this is a sidebar, why don’t you just use the login widget?

    If you must use the main body form in this area, then do this:

    echo do_shortcode('[wpmem_form login texturize=false]');

    Thread Starter neecride

    (@neecride)

    thank you that’s what I want !! I created a complete interface

    https://kings-template.net/images/widget_login.png

    you will understand I have no desire using the basic interface.

    for redirection I have to use it

    add_filter( 'wpmem_login_redirect', 'my_login_redirect', 10, 2 );
    
    function my_login_redirect( $redirect_to, $user_id ) {
    	// return the url that the login should redirect to
    	return 'https://yourdomain.com/your-page';
    }

    the form redirects me to an article on error.

    Thread Starter neecride

    (@neecride)

    hello,

    i have add function after login in my login panel (it works)

    echo do_shortcode('[wpmem_form login texturize=false redirect_to='. $Content['after-login-redirect'] . ']');

    <p>
    		<label for="<?php echo $this->get_field_name('login-redirect-id');  ?>">Redirection après login : </label>
    		<input value="<?php echo $Content['login-redirect'];?>" class="widefat" type="text" name="<?php echo $this->get_field_name('login-redirect');  ?>" id="<?php echo $this->get_field_name('login-redirect');  ?>" />
    	</p>

    but if in case of login error I find myself on an article I may want to redirect to an error page or index

    while remaining on the shortcode if there is a condition login error

    I did not find on your site !!!

    thank you for your time

    Thread Starter neecride

    (@neecride)

    Ok i found

    contion is log=url

    echo do_shortcode('[wpmem_form login texturize=false redirect_to='. $Content['login-redirect'] . ' slog=register]');

    I made a var_dump to find ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘block login form’ is closed to new replies.