Wednesday, December 23, 2015

Wordpress site url

To get the website URL use the following inbuilt function of WordPress.

$site_url  = site_url();

You will value of site URL in the above variable and can be used as following:

<?php echo $site_url; ?>

No comments:

Post a Comment

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...