Support » Fixing WordPress » Simple login to leave comment on my web-site

Viewing 3 replies - 1 through 3 (of 3 total)
  • Max

    (@clementsm)

    You can add a login form to your theme wherever you want with the following code:

    <?php
    
    if ( ! is_user_logged_in() ) {
    	wp_login_form( array( 'echo' => false ) );
    } ?>

    wp_login_form has lots of configurable options, so check it out in the codex.

    Hey, Max,

    Thanks for your help. I’m not quite as much of a novice as I was, but still waaaaay far away from a designer; so nothing is yet 2nd nature, ya know?

    Thanks again. I’ll check the options.

    Susan

    Max

    (@clementsm)

    The other thing to bear in mind, is that in order for them to login, they must be registered users on your site, so if you want to avoid the WordPress looking registration pages, you will have to build custom ones that match your theme too …

    Fortunately there are a whole bunch of tutorials out there on how to do this if you google…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple login to leave comment on my web-site’ is closed to new replies.