Skip to content
Nilesh Shiragave
  • Home
  • Services
  • About Me
  • BlogExpand
    • Javascript
    • PHP
    • React
    • Shopify
    • WordPress
  • ResourcesExpand
    • Code Snippets
  • Contact Me
Nilesh Shiragave

Home - Blog - Wordpress

WordPress Display login form anywhere

ByNilesh Shiragave November 24, 2010October 29, 2022 Last Updated OnOctober 29, 2022 Wordpress

If you want to display Login form on your website then you can display that by just single line of code.

WordPress added new function using which you can easily add wordpress login form anywhere on your wordpress blog.

Function

<?php wp_login_form(); ?>

Usage

 <?php $args = array(
        'echo' => true,
        'redirect' => site_url( $_SERVER['REQUEST_URI'] ), 
        'form_id' => 'loginform',
        'label_username' => __( 'Username' ),
        'label_password' => __( 'Password' ),
        'label_remember' => __( 'Remember Me' ),
        'label_log_in' => __( 'Log In' ),
        'id_username' => 'user_login',
        'id_password' => 'user_pass',
        'id_remember' => 'rememberme',
        'id_submit' => 'wp-submit',
        'remember' => true,
        'value_username' => NULL,
        'value_remember' => false ); 
wp_login_form($args);
?>

More Details

For more details read WordPress Codex.

Post Tags: #login box#login form#Wordpress
Nilesh Shiragave

Experienced Full Stack Developer from India with 15+ years in web development. Capturing moments through the lens as a passionate photographer.

Post navigation

Previous Previous
WordPress Thumbnail Slider Plugin
NextContinue
WordPress 3.1 Features

ADVERTISEMENTS

Disclosure: This content may contain a few affiliate links, which means if you click on them, I will get a commission (without any extra cost to you).

LOOKING FOR A DESIGN AND DEVELOPMENT PARTNER?

LET’S WORK TOGETHER

About Me


Hello, everyone! My name is Nilesh Shiragave. I’m from India. I have over 16 years of extensive experience in web development.

Recent Articles


  • Strengthening WordPress Security with HTTP Security Headers
  • Uplead Review – Is This B2B Lead Generation Tool Worth It in 2025?
  • How to Connect Bricks Builder Forms to HubSpot Using a Private App Token [Without Plugin]
  • Essential Shopify Apps to Boost Your eCommerce Store in 2025
  • Wix vs. Squarespace vs. WordPress: Which is Best for Your Website?
  • Best Free WordPress Themes for Photography

Copyright 2025 | All Rights Reserved

Home About Blog Contact
  • Facebook
  • Twitter
  • LinkedIn
Scroll to top
  • Home
  • Services
  • About Me
  • Blog
    • Javascript
    • PHP
    • React
    • Shopify
    • WordPress
  • Resources
    • Code Snippets
  • Contact Me
Search