Shortcut to Your Sites URL

 In Shortcode

Shortcut to Your Sites URL – WordPress has a simple function that allows you to quickly reference your URL. Not only will save you having to type out your URL time and time again, it will also save you having to change your files if you ever change domains.

<?php bloginfo('url'); ?>

You can then use the function like so:

<a href="<?php bloginfo('url'); ?>/about">About Our Company</a>
Recommended Posts

Leave a Comment

Start typing and press Enter to search