30
Mar
2013

WordPress Homepage URL code

Posted in: WordPress , Comments Off

wordpress
Use below code to get your WordPress site homepage URL:

<?php echo esc_url( home_url( '/' ) ); ?>

OR

<?php echo esc_url( home_url() ); ?>

This is useful when developing WordPress WordPress theme or plugin. Link if you want to link logo image to homepage.

About the Author

Name: Ravi Shekhar
I love learning and sharing web stuffs.

Share this post

Twitter Facebook Google Buzz Digg StumbleUpon Delicious Technorati
Both comments and pings are currently closed.

Comments are closed.