<?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>Jared Heinrichs &#187; Wordpress</title>
	<atom:link href="http://jaredheinrichs.com/category/web-applications/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://jaredheinrichs.com</link>
	<description>A Winnipeg &#34;How to&#34; Blog on Software and Technology</description>
	<lastBuildDate>Sat, 19 May 2012 22:43:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use Child themes with my Blank Theme</title>
		<link>http://jaredheinrichs.com/how-to-use-child-themes-with-my-blank-theme.html</link>
		<comments>http://jaredheinrichs.com/how-to-use-child-themes-with-my-blank-theme.html#comments</comments>
		<pubDate>Tue, 06 Mar 2012 05:25:45 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/?p=4761</guid>
		<description><![CDATA[Child themes at first seem like they are just a bunch of work and aren’t really needed. Child themes allow you to build a new theme based on a parent. If the parent get’s new functionality, the children also automatically &#8230; <a href="http://jaredheinrichs.com/how-to-use-child-themes-with-my-blank-theme.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Child themes at first seem like they are just a bunch of work and aren’t really needed. Child themes allow you to build a new theme based on a parent. If the parent get’s new functionality, the children also automatically get the same functionality without typically breaking anything.</p>
<p>What are the requirements with Child themes? Well… Honestly there isn’t a whole lot. The only 3 things that are required:</p>
<ol>
<li>The child theme folder must be named a certain way</li>
<li>You need to include at least one file in that folder namely style.css</li>
<li>You need to make the header of the style.css mention that it’s a child theme</li>
</ol>
<p>I am going to assume that the theme folder has been kept the same. ie.&nbsp; ( .\wp-content\themes\blank )</p>
<p>You will need to create a new folder called (.\wp-content\themes\blank-child ). Inside this folder you will need to place a file called style.css. To make things easy as possible just copy the style.css from the parent theme BLANK.</p>
<p>Here’s what the style.css theme looks like from the download (Click image to enlarge it):</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2012/03/image_thumb.png" width="596" height="103"></a></p>
<p>Here’s what the style.css file will look like in the child theme (Click image to enlarge it):</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2012/03/image_thumb1.png" width="592" height="114"></a></p>
<p>Notice I need to change the theme name in the child style.css. I also need to tell it to use “Blank” template. I do this on line 7 of the child blank theme.</p>
<p>Now that I am done making those changes let’s do something REALLY crazy and change the menu color from black to red.&nbsp; Search for “#horz-dropdown-menu” and change the css color to “red” like so (Click image to enlarge it):</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2012/03/image_thumb2.png" width="559" height="182"></a></p>
<p>Now activate the child them from the theme section in WordPress.</p>
<p>Everything is identical EXCEPT that the menu is now red. As you can see this can be VERY powerful. You can change the way a template looks without worrying about loosing functionality.</p>
<p>Please note! – The child theme style.css COMPLETELY overwrites the parent style.css</p>
<p>Ok. Let’s try another example of how you can use Child themes to extend the original theme. This time we are going to make a slight change the included google analytics code. This is one example that will most likely want to do right off the hop if you are making a child theme. Right now it’s very easy to predict how the google analytics code will look. But say in the future I update the code and you apply the update to your server. Essentially it would over write the current functions.php file and your manual configurations with it. As you can probably imaging that this would not be a good outcome. So how do we deal with this?</p>
<p>I ripped this next section off the WordPress website:</p>
<ul>
<li>Unlike <i>style.css</i>, the <i>functions.php</i> of a child theme does not override its counterpart from the parent. Instead, it is <b>loaded in addition to the parent’s functions.php</b>. (Specifically, it is loaded right <i>before</i> the parent’s file.)</li>
<li>In that way, the <i>functions.php</i> of a child theme provides a smart, trouble-free method of modifying the functionality of a parent theme. Say that you want to add a PHP function to your theme. The fastest way would be to open its <i>functions.php</i> file and put the function there. But that’s not smart: The next time your theme is updated, your function will disappear. But there is an alternative way which is the smart way: you can create a child theme, add a <i>functions.php</i> file in it, and add your function to that file. The function will do the exact same job from there too, with the advantage that it will not be affected by future updates of the parent theme.</li>
<li>The structure of <i>functions.php</i> is simple: An opening PHP tag at the top, a closing PHP tag at the bottom, and, between them, your bits of PHP. In it you can put as many or as few functions as you wish. The example below shows an elementary <i>functions.php</i> file that does one simple thing: Adds a favicon link to the <code>head</code> element of HTML pages.</li>
</ul>
<p>Here’s an example of a the child theme functions.php file. When put into the child theme folder all parent functions can still be accessed but add_googleanalytics will now be over written with whatever you decide to change or add in this file. (Click image to enlarge it)</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2012/03/image_thumb4.png" width="725" height="413"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-use-child-themes-with-my-blank-theme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blank WordPress Theme</title>
		<link>http://jaredheinrichs.com/blank-wordpress-theme.html</link>
		<comments>http://jaredheinrichs.com/blank-wordpress-theme.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 01:48:14 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/?p=4727</guid>
		<description><![CDATA[I know everyone in their dog has a created a Blank theme for WordPress. You might be wondering why does the world need another one? My game plan is to make a starter WordPress theme that is graphically bare but &#8230; <a href="http://jaredheinrichs.com/blank-wordpress-theme.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I know everyone in their dog has a created a Blank theme for WordPress. You might be wondering why does the world need another one? My game plan is to make a starter WordPress theme that is graphically bare but has a ton of “backend” tools.  I have been making notes of things I always do when creating a website. This theme will include all the things I would typically setup before even starting in on the design of the theme. I am going to try and make this theme very well documented. This will hopefully help people learn about WordPress and not feel intimidated.</p>
<p>I want to thank Chris Coyier of CSS Tricks fame. I started off using his Blank WordPress theme for the initial fork of the code. You can use this theme for personal or business use. This theme can be edited/Changed/forked to your liking. The only thing that I’d ask of you is:</p>
<ul>
<li>If you like or use this theme let a few other people know about it.</li>
<li>Before you change or fork the Theme I’d ask if you’d let me know if there was a feature that is missing that you would like included so that everyone can benefit from it.</li>
</ul>
<p>If you are needing a great <a href="http://www.winnipegexperts.com">Winnipeg WordPress developer</a> you might want to check out my business website Winnipeg Experts.</p>
<h3>Tutorials on how to use my Blank WordPress Theme</h3>
<ul>
<li><a title="How to use Child themes with my Blank Theme" href="http://jaredheinrichs.com/how-to-use-child-themes-with-my-blank-theme.html">How to use Child themes with my Blank Theme</a> - 3/5/2012</li>
</ul>
<h3>Updates</h3>
<ul>
<li><strong>3/6/2012 &#8211; </strong>Fix child theme Google Analytics bug and started including child theme example.</li>
<li><strong>3/5/2012 &#8211; </strong>Cleaned up footer and moved google Analytics into a function</li>
<li><strong>2/27/2012 &#8211; </strong>Added some extra features to the theme. On this post I am now going to list all the features of the theme and what version the features came in.</li>
<li><strong>2/19/2012</strong> – My Blank WordPress Theme was born.</li>
</ul>
<h3>Key features of my Blank WordPress Theme</h3>
<ul>
<li>CSS Reset – 1.0.0</li>
<li>HTML5 markup – 1.0.0</li>
<li>jQuery included automatically – 1.0.0</li>
<li>Easily target page via browser type using modrnizer – 1.0.0</li>
<li>Added background and image selecting support in WordPress – 1.0.0</li>
<li>Thumbnail (featured image)support added to theme – 1.0.0</li>
<li>Added image sizes – 1.0.0</li>
<li>Easily build a dropdown menu using one function – 1.0.1</li>
<li>Easily select how the page is going to look (Sidebar left or right) using drop down – 1.0.1</li>
<li>Example of Custom Taxonomy (disabled by default) – 1.0.1</li>
<li>2 Page Templates created – 1.0.1</li>
<li>Registered two menus – Header &amp; Footer – 1.0.1</li>
<li>Google Analytics is now part of function.php instead of footer - 1.0.2</li>
<li>Child Theme now included &#8211; 1.0.3</li>
</ul>
<h3>Custom Functions of the theme</h3>
<ul>
<li>Build a dropdown menu using one function &#8211; jh_horz_dropdown_menu($menu_name); – 1.0.1</li>
<li>Easily display the featured image on the page by calling one function &#8211; jh_display_featured_image($image_size_name); – 1.0.1</li>
</ul>
<h3>Features Planned</h3>
<ul>
<li>Change custom menu function to allow for building horizontal or vertical fly-out menus using the same function. Function name will be generalized once the code work has been completed.</li>
<li>Slider/Image rotator</li>
<li>Get Theme Hosted on WordPress.com so updates can be applied automatically. Easier to install. ie. No FTP access needed.</li>
</ul>
<p><strong>Latest Version:</strong></p>
<ul>
<li>Version 1.0.3 – <a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/jh-blank-theme-1.0.3.zip">Download Blank WordPress Theme</a> 1.0.3</li>
</ul>
<p><strong>Older versions:</strong></p>
<ul>
<li>Version 1.0.2 – <a href="http://jaredheinrichs.com/wp-content/uploads/2012/03/jh-blank-theme-1.0.2.zip">Download Blank WordPress Theme</a> 1.0.2</li>
<li>Version 1.0.1 – <a href="http://jaredheinrichs.com/wp-content/uploads/2012/02/jh-blank-theme-1.0.1.zip">Download Blank WordPress Theme</a> 1.0.1</li>
<li>Version 1.0.0 &#8211; <a title="Blank WordPress Theme" href="http://jaredheinrichs.com/wp-content/uploads/2012/02/jh-blank-theme-1.0.0.zip">Download Blank WordPress Theme</a> 1.0.0</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/blank-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix WordPress Network WP-DBManager Error Warning: Your backup folder MIGHT be visible to the public</title>
		<link>http://jaredheinrichs.com/fix-wordpress-network-wp-dbmanager-error-warning-your-backup-folder-might-be-visible-to-the-public.html</link>
		<comments>http://jaredheinrichs.com/fix-wordpress-network-wp-dbmanager-error-warning-your-backup-folder-might-be-visible-to-the-public.html#comments</comments>
		<pubDate>Sat, 08 Oct 2011 16:14:59 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/fix-wordpress-network-wp-dbmanager-error-warning-your-backup-folder-might-be-visible-to-the-public.html</guid>
		<description><![CDATA[Are you getting the WordPress WP-DBManager Error – “Your backup folder MIGHT be visible to the public”? Background I was getting this error when I first installed the plugin. I then moved the .htaccess file in the proper location and &#8230; <a href="http://jaredheinrichs.com/fix-wordpress-network-wp-dbmanager-error-warning-your-backup-folder-might-be-visible-to-the-public.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Are you getting the WordPress WP-DBManager Error – “Your backup folder MIGHT be visible to the public”? </p>
<h3>Background</h3>
<p>I was getting this error when I first installed the plugin. I then moved the .htaccess file in the proper location and everything seemed to be working. I then enabled WordPress Networks (Formally called Multisite).&#160; I started getting that error again from WP-DBManager about being being visible to the public.</p>
<h3>Solution</h3>
<p>It turns out that in order to remove the error message happens because wordpress uses virtual directories. Because the .htaccess file isn’t in the virtual directory it put’s up the error. To get around this you need to disable WP-DBManager for the network. Once disabled go to the main WordPress site and enable the plugin there. Do NOT enable the plugin on sub-networks. Voila! You’re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/fix-wordpress-network-wp-dbmanager-error-warning-your-backup-folder-might-be-visible-to-the-public.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove related youTube videos</title>
		<link>http://jaredheinrichs.com/how-to-remove-related-youtube-videos.html</link>
		<comments>http://jaredheinrichs.com/how-to-remove-related-youtube-videos.html#comments</comments>
		<pubDate>Sat, 08 Oct 2011 13:20:17 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-to-remove-related-youtube-videos.html</guid>
		<description><![CDATA[I just started working on my new Winnipeg Photographer Website. I embedded a video but was shocked to see a bunch of my other personal videos were being offered up to people that went to go view the website. Here’s &#8230; <a href="http://jaredheinrichs.com/how-to-remove-related-youtube-videos.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just started working on my new <a href="http://jaredheinrichsphotography.com/" target="_blank">Winnipeg Photographer</a> Website. I embedded a video but was shocked to see a bunch of my other personal videos were being offered up to people that went to go view the website. Here’s what the related videos look like.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/10/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/10/image_thumb3.png" width="428" height="354" /></a></p>
<p>Removing the related videos isn’t all that hard to do. You can only remove the related videos on videos that are embedded&#160; in other webpages. You need to add “&amp;rel=0” to the “src” link. </p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/10/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/10/image_thumb4.png" width="617" height="70" /></a></p>
<p>After making the adjustments here’s what it looks like.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/10/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/10/image_thumb5.png" width="433" height="356" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-remove-related-youtube-videos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to easily backup your WordPress Website</title>
		<link>http://jaredheinrichs.com/how-to-easily-backup-your-wordpress-website.html</link>
		<comments>http://jaredheinrichs.com/how-to-easily-backup-your-wordpress-website.html#comments</comments>
		<pubDate>Sat, 08 Oct 2011 04:16:20 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-to-easily-backup-your-wordpress-website.html</guid>
		<description><![CDATA[There are many different ways of backing up your website. I will list here how I setup my backup strategy and why I decided on this solution. Overview – The backup will use WP-DBManager to backup the sql first. I &#8230; <a href="http://jaredheinrichs.com/how-to-easily-backup-your-wordpress-website.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many different ways of backing up your website. I will list here how I setup my backup strategy and why I decided on this solution.</p>
<p>Overview – The backup will use WP-DBManager to backup the sql first. I will then use my computer to sync the website to my local PC.</p>
<p>Things needed – You will need a Windows PC, <a href="http://www.educ.umu.se/~cobian/index.htm" target="_blank">Cobain Backup</a> and <a href="http://wordpress.org/extend/plugins/wp-dbmanager/">WP-DBManager</a>.</p>
<p>First log into your WordPress install. You will need to go to the plugins and install “WP-DBmanager”. You will also need to setup the backup. It’s pretty easy to do. If you are installing it on GoDaddy servers make sure to check out my other post &#8211; <a title="http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html" href="http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html" target="_blank">http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html</a></p>
<p>Once done make a backup of the sql database.</p>
<p>Install Cobain Backup on your locally on your PC. Make sure to setup a Task where the source is an FTP site and the destination is your local machine.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/10/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="How to Backup WordPress" border="0" alt="How to Backup WordPress" src="http://jaredheinrichs.com/wp-content/uploads/2011/10/image_thumb2.png" width="518" height="353" /></a></p>
<p>Sync the task You local folder will now not only have everything on the Webserver it will also have the DB Backup. Hope this helps</p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-easily-backup-your-wordpress-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How setup WP-DBManager with Godaddy (mysqldump and mysql)</title>
		<link>http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html</link>
		<comments>http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html#comments</comments>
		<pubDate>Sat, 08 Oct 2011 03:59:42 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html</guid>
		<description><![CDATA[I had a bit of a tough time with this one. When setting up WP-DBPManger in a WordPress install on GoDaddy you will need to use different paths then what most of the forums are saying. The autodect feature in &#8230; <a href="http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a bit of a tough time with this one. When setting up WP-DBPManger in a WordPress install on GoDaddy you will need to use different paths then what most of the forums are saying. The autodect feature in WP-DBManager does not work either when the provider is GoDaddy.</p>
<p>To get things working you will need to enter this info:</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/10/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/10/image_thumb1.png" width="531" height="270" /></a></p>
<p>If you don’t have this info entered you will see red errors all over the place and the backup will not work properly.</p>
<p>Hope this helps anyone trying to setup WP-DBManager on GoDaddy!</p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-setup-wp-dbmanager-with-godaddy-mysqldump-and-mysql.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress  &#8211; How to use WordPress settings in your theme</title>
		<link>http://jaredheinrichs.com/wordpress-how-to-use-wordpress-settings-in-your-theme.html</link>
		<comments>http://jaredheinrichs.com/wordpress-how-to-use-wordpress-settings-in-your-theme.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 17:14:42 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/wordpress-how-to-use-wordpress-settings-in-your-theme.html</guid>
		<description><![CDATA[One of the most powerful WordPress functions you will get to use is: bloginfo(). You can most likely tell that&#160; WordPress’s bloginfo() function will return some information regarding your blog. I’ve listed all of the command you can feed bloginfo() &#8230; <a href="http://jaredheinrichs.com/wordpress-how-to-use-wordpress-settings-in-your-theme.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the most powerful WordPress functions you will get to use is: bloginfo().</p>
<p>You can most likely tell that&#160; WordPress’s bloginfo() function will return some information regarding your blog. I’ve listed all of the command you can feed bloginfo() below.</p>
<p>&#160;</p>
<pre><font size="2">name                 = Testpilot
description          = Just another WordPress blog
admin_email          = admin@example

url                  = http://example/home
wpurl                = http://example/home/wp

stylesheet_directory = http://example/home/wp/wp-content/themes/child-theme
stylesheet_url       = http://example/home/wp/wp-content/themes/child-theme/style.css
template_directory   = http://example/home/wp/wp-content/themes/parent-theme
template_url         = http://example/home/wp/wp-content/themes/parent-theme

atom_url             = http://example/home/feed/atom
rss2_url             = http://example/home/feed
rss_url              = http://example/home/feed/rss
pingback_url         = http://example/home/wp/xmlrpc.php
rdf_url              = http://example/home/feed/rdf

comments_atom_url    = http://example/home/comments/feed/atom
comments_rss2_url    = http://example/home/comments/feed

charset              = UTF-8
html_type            = text/html
language             = en-US
text_direction       = ltr
version              = 3.1</font></pre>
<p>I’m guessing since you are here you are wondering how can you use bloginfo() in your theme and why should you care?</p>
<p>The thing I tend to use bloginfo() for is making sure that no matter where on the site, things like my CSS file location, my home page and theme files are always calculated properly. One of the things I see most often with new WordPress users is that they use relative paths to files like CSS and images. While this might work in static sites, it doesn’t really work all that well in dynamically creates site like a WordPress Website.</p>
<p>Here’s an example:</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/09/image32.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image_thumb.png" width="361" height="227" /></a></p>
<p>Notice how I highlighted that the url has several sub folders – “/category/operating-system/active-directory-2003”. If your theme would have used relative paths for the logo and the encompassing link you would have noticed that the logo wouldn’t show up and then link would be most likely broken.</p>
<p>What I normally see people do to fix this issue is just put in Fully Qualified Paths for things like the logo and certain links. In my opinion not only does this add extra bloat to the website it also kind of defeats the dynamic nature of WordPress! Because I tend to create offline themes first and then move it to a online Webserver. If you didn’t use bloginfo() for the links you will have to do a bunch of extra manual changes where ever you hard coded things. This causes extra headaches and unneeded work.</p>
<p>Using my website as an example you can see I use bloginfo() to fill in the anchor link “Url”very easily. I’ve also told it display the Logo image that is located in the template directory.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/09/image33.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image_thumb1.png" width="697" height="85" /></a></p>
<p>Another thing I have seen is a person is wanting to make a slightly modified theme for say Christmas. If you were to copy the theme, rename the folder and activate then new theme,&#160; all your hard coded links would no longer work or still point to the old theme location!</p>
<p>I recommend getting into a habit of making your themes with built in WordPress functions like bloginfo(). It will save you time and fustration. You will also know that you can pickup your theme and move it where ever you want and you don’t have to worry that the theme folder is even named the same.</p>
<p>Here’s a listing of ALL the settings you can use with “bloginfo()”. <a title="http://codex.wordpress.org/Function_Reference/bloginfo" href="http://codex.wordpress.org/Function_Reference/bloginfo">http://codex.wordpress.org/Function_Reference/bloginfo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/wordpress-how-to-use-wordpress-settings-in-your-theme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to fix next_posts_link() doesn&#8217;t work</title>
		<link>http://jaredheinrichs.com/wordpress-how-to-fix-next_posts_link-doesnt-work.html</link>
		<comments>http://jaredheinrichs.com/wordpress-how-to-fix-next_posts_link-doesnt-work.html#comments</comments>
		<pubDate>Mon, 26 Sep 2011 06:40:25 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/wordpress-how-to-fix-next_posts_link-doesnt-work.html</guid>
		<description><![CDATA[I first off want to thank Chris Coyier of css-tricks.com! If you’ve never seen or heard of Chris you don’t know what you are missing. My answer to this question came from watching the 31:14 minute video on css-tricks called &#8230; <a href="http://jaredheinrichs.com/wordpress-how-to-fix-next_posts_link-doesnt-work.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I first off want to thank Chris Coyier of css-tricks.com! If you’ve never seen or heard of Chris you don’t know what you are missing. My answer to this question came from watching the 31:14 minute video on css-tricks called “<a href="http://css-tricks.com/video-screencasts/91-the-wordpress-loop/" target="_blank">the WordPress Loop</a>”.</p>
<p>The most likely reason why next_post_link() doesn’t work in your theme is mostly do to how you setup the loop. The part of the loop that is most likely not setup is the “paging” part of it. Because paging isn’t setup you display the same content OVER and OVER each time you click on the “Newer Entries”. By setting up paging you are telling WordPress to display “X” amount of posts per page. The “offset” tells WordPress where to start on the next page.</p>
<p>I will post a screenshot of some code and go over what you need to do:</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Wordpress - How to fix next_posts_link() doesn’t work" border="0" alt="Wordpress - How to fix next_posts_link() doesn’t work" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image30.png" width="540" height="433" /></p>
<p>We need to use the “query_posts()” function (Line 15). In order to get the query that you want you should make a few variables first.</p>
<ul>
<li>On line 12 we create a variable called “ppp” (Posts Per Page) and give it a number.</li>
<li>On line 13 we create the offset variable. This will help with a term called “Paging”.</li>
</ul>
<p>Now that we have the variables setup we are going to create a custom WordPress Loop. To do this we need to make a new query.</p>
<ul>
<li>On line 15 I show you how to make a custom query using the variables we created earlier.</li>
</ul>
<p>The query basically says: Go out and get me all the posts. I know I am going to be displaying “2” posts per page. Each time I go and click on “Newer Entries” start at the “offset” and then display another set of posts equaling whatever you set the “ppp” to be. </p>
<p>You might be asking yourself is there another way of doing this? Actually there is if you are using this as the only loop on a page and you want just spit out the blog entries.</p>
<p>Create a page template file and name it “pagetemplate.php” and put it into your theme directory. If you are using the same info in the screenshot the template name you will be able to select in the next step is going to be called “Playing with Loop”. *NOTE* – You won’t need lines 12 to 16!</p>
<p>Create a new page in WordPress and open it. I’m going to call my page “Blog”. On the right hand side under “Page Attributes” you see “Template”. Select “Playing with Loop” and hit update. You must now go and make some changes in the WP Admin area. Go to “settings” and “reading” and select the page that you want to be the default “Posts” page. Since as I previously mentioned I called my page “Blog” I am going to select “Blog” and voila. WordPress now knows that since this page is going to be displaying the posts, the paging will already be setup.</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Wordpress - How to fix next_posts_link() doesn’t work" border="0" alt="Wordpress - How to fix next_posts_link() doesn’t work" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image31.png" width="531" height="177" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/wordpress-how-to-fix-next_posts_link-doesnt-work.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress&#8211;How to display the date using General Settings Date Format</title>
		<link>http://jaredheinrichs.com/wordpresshow-to-display-the-date-using-general-settings-date-format.html</link>
		<comments>http://jaredheinrichs.com/wordpresshow-to-display-the-date-using-general-settings-date-format.html#comments</comments>
		<pubDate>Thu, 15 Sep 2011 01:53:32 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/wordpresshow-to-display-the-date-using-general-settings-date-format.html</guid>
		<description><![CDATA[You might have wondered how to display the date of a post on a page by using the Date Format settings. Date Format settings can be found in “General Settings”. Like always, I like creating a function for this as &#8230; <a href="http://jaredheinrichs.com/wordpresshow-to-display-the-date-using-general-settings-date-format.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You might have wondered how to display the date of a post on a page by using the Date Format settings. Date Format settings can be found in “General Settings”.</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image5.png" width="488" height="227" /></p>
<p>Like always, I like creating a function for this as it cleans up my template quite a bit. This also means I can re-use the code over and over again.</p>
<p>Open functions.php and add this to the end of the file:</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image6.png" width="382" height="50" /></p>
<p>Now anywhere in your theme you can get the date posted without dealing with the date format. All you need to do is type this:</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image7.png" width="224" height="17" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/wordpresshow-to-display-the-date-using-general-settings-date-format.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to display the category and tags of a post</title>
		<link>http://jaredheinrichs.com/wordpress-how-to-display-the-category-and-tags-of-a-post.html</link>
		<comments>http://jaredheinrichs.com/wordpress-how-to-display-the-category-and-tags-of-a-post.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 23:26:18 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/wordpress-how-to-display-the-category-and-tags-of-a-post.html</guid>
		<description><![CDATA[Here’s an easy way of displaying what category and tags a WordPress post is part of: &#160; Now that you know how to display the info it would make sense to put this in the functions.php and then call that &#8230; <a href="http://jaredheinrichs.com/wordpress-how-to-display-the-category-and-tags-of-a-post.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here’s an easy way of displaying what category and tags a WordPress post is part of:</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image2.png" width="671" height="261" /></p>
<p>&#160;</p>
<p>Now that you know how to display the info it would make sense to put this in the functions.php and then call that function in your wordpress theme. To do this edit your functions.php and add this near the end of the file.</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image3.png" width="684" height="279" /></p>
<p>Now all you need to do in your theme is to call:</p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jaredheinrichs.com/wp-content/uploads/2011/09/image4.png" width="735" height="158" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/wordpress-how-to-display-the-category-and-tags-of-a-post.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

