<?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>Nashville, TN&#039;s Best WordPress Designer/Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>BlogInfo &#8211; One Tag with a Whole Lot of Awesomeness</title>
		<link>http://www.studionashvegas.com/musings/bloginfo-one-tag-with-a-whole-lot-of-awesomeness/</link>
		<comments>http://www.studionashvegas.com/musings/bloginfo-one-tag-with-a-whole-lot-of-awesomeness/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 21:45:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Bloginfo]]></category>
		<category><![CDATA[rss_url]]></category>
		<category><![CDATA[template_directory]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/wordpress/bloginfo-one-tag-with-a-whole-lot-of-awesomeness/</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/musings/" title="Musings">Musings</a></p>One of the most versitile tags in my arsenal that WordPress gives me is a fun little tag called &#60;?php bloginfo(); ?&#62;.&#160;]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/musings/" title="Musings">Musings</a></p><p><a href="http://cdn.studionashvegas.com/wp-content/uploads/2011/02/blog1.jpg" rel="shadowbox[sbpost-1272];player=img;"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 10px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top: 0px; border-right: 0px; padding-top: 0px" title="blog[1]" border="0" alt="blog[1]" align="right" src="http://cdn.studionashvegas.com/wp-content/uploads/2011/02/blog1_thumb.jpg" width="165" height="127"></a>One of the most versitile tags in my arsenal that WordPress gives me is a fun little tag called &lt;?php bloginfo(); ?&gt;.&nbsp; By itself, it’s not much fun, but when you add in a variable, it can tell you anything you need to know about your blog.&nbsp; Like what, you ask?</p>
<ul>
<li>name</li>
<li>description</li>
<li>admin_email</li>
<li>url</li>
<li>wpurl</li>
<li>stylesheet_directory</li>
<li>stylesheet_url</li>
<li>template_directory</li>
<li>template_url</li>
<li>atom_url</li>
<li>rss_url</li>
<li>pingback_url</li>
<li>rdf_url</li>
<li>comments_atom_url</li>
<li>comments_rss2_url</li>
<li>charset</li>
<li>html_type</li>
<li>language</li>
<li>text_direction</li>
<li>version</li>
</ul>
<p>Look at all of the information packed into one template tag.&nbsp; So, what are it’s practical uses?</p>
<h3>Pull an Image From Your Template Folder</h3>
<p>&lt;img src=&#8221;&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt;/images/image.png&#8221;&gt;</p>
<p>This lets you add images into your themes, and (no matter what the url is) the image will be pulled from the theme folder directly.&nbsp; Even works if the user changes the name or folder text.</p>
<h3>Add an RSS Feed Subscription Link Anywhere!</h3>
<p>&lt;a href=&#8221;&lt;?php bloginfo(&#8216;rss_url&#8217;); ?&gt;&#8221;&gt;subscribe to the feed&lt;/a&gt;</p>
<h3>Add a Link to the Home Page Anywhere!</h3>
<p>&lt;a href=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;&#8221;&gt;Home&lt;/a&gt;</p>
<p>These are just a few of the uses I’ve personally used in themes with this tag.&nbsp; Do you use it for something different?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/musings/bloginfo-one-tag-with-a-whole-lot-of-awesomeness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Know a WordPress Tag: ‘siteurl’</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>admin</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[<p>Posted in <a href="http://www.studionashvegas.com/category/wordpress/" title="WordPress">WordPress</a></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]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/wordpress/" title="WordPress">WordPress</a></p><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>
]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/wordpress/better-know-a-wordpress-tag-siteurl/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 4/21 queries in 0.015 seconds using disk: basic
Object Caching 490/520 objects using disk: basic
Content Delivery Network via cdn.studionashvegas.com

Served from: www.studionashvegas.com @ 2012-02-04 05:30:50 -->
