<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mitch Canter is [studionashvegas] &#187; Bloginfo</title>
	<atom:link href="http://www.studionashvegas.com/tag/bloginfo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studionashvegas.com</link>
	<description>&#124; Nashville&#039;s Best WordPress Design, Web Development, and Marketing</description>
	<lastBuildDate>Sun, 20 Jun 2010 21:04:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Better Know a WordPress Tag: &#8216;siteurl&#8217;</title>
		<link>http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/</link>
		<comments>http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 05:32:49 +0000</pubDate>
		<dc:creator>studionashvegas</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Bloginfo]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/?p=624</guid>
		<description><![CDATA[When you’re working on a development site it’s hard to set things up correctly because you know you’re going to change the site, and putting in elements that are more than likely “stationary”, such as links, will have to be changed, and that causes un-necessary headache when it comes time to move the site live.  [...]]]></description>
			<content:encoded><![CDATA[<p>When you’re working on a development site it’s hard to set things up correctly because you know you’re going to change the site, and putting in elements that are more than likely “stationary”, such as links, will have to be changed, and that causes un-necessary headache when it comes time to move the site live.  But, in the light of wanting to make your lives easier as a developer, there is a WordPress tag that can make your life much easier: ‘bloginfo’.  the ‘bloginfo’ tag can be given various arguments to make it bend to your will.  But, one of the most useful I’ve found:</p>
<h3>&lt;?php bloginfo(‘siteurl’); ?&gt;</h3>
<p>Instead of putting links in with just a leading slash (/about/), adding &lt;?php bloginfo(‘siteurl’); ?&gt; will automatically append the full site url before the sub-pages. Since most developers have their dev sites as a subfolder of a current site, this allows you to skip adding the development folder before each and every URL.  It’s also good for adding links into hardcoded content, such as graphical navigation, or specially coded front-page templates.</p>
<h3>Example code:</h3>
<pre>&lt;a href=”&lt;?php bloginfo(‘siteurl’); ?&gt;”&gt;home&lt;/a&gt;</pre>
<p>this link will lead you to the home page.</p>
<pre>&lt;a href=”&lt;?php bloginfo(‘siteurl’); ?&gt;/about/”&gt;about&lt;/a&gt;</pre>
<p>this link (if you have custom permalinks) will take you to the about page, no matter what website or server it’s hosted on.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;title=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;title=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;t=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B&amp;link=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;title=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/&amp;title=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.studionashvegas.com%2Fwordpress%2Fbetter-know-a-wordpress-tag-siteurl%2F&amp;t=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B" rel="nofollow" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Better+Know+a+WordPress+Tag%3A+%26lsquo%3Bsiteurl%26rsquo%3B+-+http://b2l.me/47qvk&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.studionashvegas.com%2Fwordpress%2Fbetter-know-a-wordpress-tag-siteurl%2F&amp;layout=standard&amp;show-faces=true&amp;width=600&amp;action=recommend&amp;font=verdana&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:600px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
