<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Jon Bishop &#187; Themes</title>
	<atom:link href="http://www.jonbishop.com/category/wordpress-stuff/themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonbishop.com</link>
	<description>Social Media, WordPress and Web Development</description>
	<lastBuildDate>Tue, 10 Jan 2012 21:55:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress and Shortcodes</title>
		<link>http://www.jonbishop.com/2011/06/wordpress-shortcodes/</link>
		<comments>http://www.jonbishop.com/2011/06/wordpress-shortcodes/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 21:39:12 +0000</pubDate>
		<dc:creator>Jon Bishop</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[Shortcodes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.jonbishop.com/?p=7893</guid>
		<description><![CDATA[I gave a talk the]]></description>
			<content:encoded><![CDATA[<div>
<p>I gave a talk the other night at the Boston WordPress meetup about how I use <a title="Shortcode API" href="http://codex.wordpress.org/Shortcode_API">shortcodes</a> to enable my clients to create better looking content. <span id="more-7893"></span>A problem I was having was people were paying me to set them up on WordPress so they can take control of their content and then they were paying me even more to edit the content for them to &#8220;make it look pretty&#8221;. I guess if you need the business this isn&#8217;t a problem but I like to avoid small jobs, like manipulating content, so I can focus on my bigger projects and plugin support.</p>
<h2>Pros and Cons of WordPress Shortcodes</h2>
<h3>Themes vs Plugins</h3>
<p>The most popular implementation is currently in premium WordPress themes as a means of creating better looking content that matches the look and feel of the rest of the site. The problem then becomes you are tied to that theme if a majority of your site is relying on theme shortcodes to lay out your content. This won&#8217;t be a problem if you plan on rewriting your content but definitely something worth keeping in mind. It&#8217;s best to take functionality out of your theme you would like to be theme independent and put it in a <a title="How to create your own WordPress functionality plugin" href="http://wpcandy.com/teaches/how-to-create-a-functionality-plugin">functionality plugin</a>.</p>
<p>My problem with using formatting shortcodes in a plugin as opposed to a theme is your content is less likely to match the look and feel of the rest of the site. That&#8217;s not to say their aren&#8217;t some great solutions out there and ultimately using a plugin will keep your content theme independent.</p>
<h3>Usability</h3>
<p>One of the obvious problems with shortcodes is if you&#8217;re taking the time to learn them, you can probably just learn HTML and CSS. I find this is true in most cases but not all. A shortcode is still easier to to use if you find the Visual/HTML editor confusing. You also don&#8217;t have to muck around with CSS.</p>
<p>One thing I think helps tremendously is the presence of a user interface to assist in the creation of the shortcodes. Most of the time this is in the form of a button on the visual editor that provides a popup with more options. There is no standard implementation of this so you won&#8217;t always have the luxury. More important is you now know it&#8217;s possible and can keep an eye out for how themes approach this problem. Most premium themes in ThemeForest do a good job of this.</p>
</div>
<h3>Speed</h3>
<p>If you don&#8217;t have to use shortcodes, just don&#8217;t use them. We&#8217;re talking milliseconds here in most cases so it really doesn&#8217;t matter too much. One problem with shortcodes is you cannot detect if a shortcode is being used in your content from your header so you can conditionally load javascript. You can however conditionally load javascript in the footer but it can be kind of a hack.</p>
<h2>Resources</h2>
<h3>Code Snippets</h3>
<ul>
<li><a title="10 incredibly cool WordPress shortcodes - Cats Who Code" href="http://www.catswhocode.com/blog/10-incredibly-cool-wordpress-shortcodes">10 incredibly cool WordPress shortcodes  - Cats Who Code</a></li>
<li><a title="Mastering WordPress Shortcodes" href="http://coding.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">Mastering WordPress Shortcodes &#8211; Smashing Magazine</a></li>
</ul>
<h3>Advanced Development</h3>
<ul>
<li><a title="How to load JavaScript like a WordPress Master - scribu" href="http://scribu.net/wordpress/optimal-script-loading.html">How to load JavaScript like a WordPress Master &#8211; scribu</a></li>
<li><a title="Make Shortcodes User-Friendly - Gary Cao" href="http://www.garyc40.com/2010/03/how-to-make-shortcodes-user-friendly/">Make Shortcodes User-Friendly &#8211; Gary Cao</a></li>
</ul>
<h3>Plugins &amp; Themes</h3>
<ul>
<li><a title="Styles with Shortcodes for WordPress" href="http://codecanyon.net/item/styles-with-shortcodes-for-wordpress/142221?ref=jonbish">Styles with Shortcodes for WordPress</a></li>
<li><a title="ElegantThemes" href="http://www.jonbishop.com/elegantthemes">ElegantThemes</a></li>
<li><a title="JShortCodes" href="http://www.jshortcodes.com/">JShortCodes</a></li>
<li><a title="HubSpot for WordPress" href="http://wordpress.org/extend/plugins/hubspot/">HubSpot for WordPress</a></li>
<li><a title="ThemeForest Great Themes" href="http://themeforest.net/searches?ref=jonbish&amp;term=shortcodes&amp;categories%5Bwordpress%5D=1">ThemeForest</a></li>
</ul>
<h2>Slides from Boston WordPress Meetup</h2>
<p>[slideshare id=8441481&amp;doc=wordpressandshortcodes-110627214435-phpapp02]</p>
<p><em>I used the [<code>slideshare</code>] shortcode to display the slides!</em></p>
<h2>Come to Boston WordCamp</h2>
<p>I&#8217;ll be speaking more about shortcodes again at <a href="http://2011.boston.wordcamp.org/">Boston WordCamp</a> so be sure to go and sign up. I&#8217;ll be showing different examples of how businesses can use shortcodes to create better looking content. There are a bunch of other <a href="http://2011.boston.wordcamp.org/speakers/">great speakers</a> with some very <a href="http://2011.boston.wordcamp.org/schedule/">interesting topics</a> lined up. It&#8217;s sure to be a great time and an awesome place to get brushed up on all the latest WordPress tips and tricks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonbishop.com/2011/06/wordpress-shortcodes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<enclosure url="http://www.jonbishop.com/wp-content/uploads/2011/06/wordpress-shortcodes.png" length="131344" type="image/jpg" /><media:content url="http://www.jonbishop.com/wp-content/uploads/2011/06/wordpress-shortcodes.png" width="600" height="200" medium="image" type="image/png" />	</item>
		<item>
		<title>Where To Find Awesome WordPress Themes</title>
		<link>http://www.jonbishop.com/2010/08/where-to-find-awesome-wordpress-themes/</link>
		<comments>http://www.jonbishop.com/2010/08/where-to-find-awesome-wordpress-themes/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:04:50 +0000</pubDate>
		<dc:creator>Jon Bishop</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.jonbishop.com/?p=6706</guid>
		<description><![CDATA[These are my favorite places]]></description>
			<content:encoded><![CDATA[<p>These are my favorite places to find WordPress themes. I find I am often pointing people to these sites based on which list I think suits them best. I thought it was about time I collected my thoughts in a blog post and shared all of these great lists with the world.<span id="more-6706"></span></p>
<p>The best part about finding new WordPress themes through these lists is you will discover even more cool new themes as you begin to click through to the individual theme developers pages.</p>
<p>&#8230; explore and enjoy!</p>
<h2>Free WordPress Themes</h2>
<p><a href="http://www.smashingmagazine.com/2010/08/19/100-free-high-quality-wordpress-themes-for-2010/"><img class="size-full wp-image-6709 aligncenter" title="100 Free High Quality WordPress Themes: 2010 Edition" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-smashing1.png" alt="100 Free High Quality WordPress Themes: 2010 Edition" width="550" height="200" /></a></p>
<p><a href="http://www.smashingmagazine.com/2009/11/12/40-free-high-quality-wordpress-themes/"><img class="size-full wp-image-6711 aligncenter" title="40 Free High-Quality WordPress Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-smashing2.png" alt="40 Free High-Quality WordPress Themes" width="550" height="200" /></a></p>
<p><a href="http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/"><img class="size-full wp-image-6712 aligncenter" title="100 Amazing Free WordPress Themes for 2009" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-smashing3.png" alt="100 Amazing Free WordPress Themes for 2009" width="550" height="200" /></a></p>
<p><a href="http://www.smashingmagazine.com/2008/08/25/30-free-high-quality-wordpress-themes/"><img class="size-full wp-image-6713 aligncenter" title="30 Free High Quality WordPress Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-smashing4.png" alt="30 Free High Quality WordPress Themes" width="550" height="200" /></a></p>
<p><a href="http://www.smashingmagazine.com/2008/01/08/100-excellent-free-high-quality-wordpress-themes/"><img class="size-full wp-image-6714 aligncenter" title="100 Excellent Free WordPress Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-smashing5.png" alt="100 Excellent Free WordPress Themes" width="550" height="200" /></a></p>
<p><a href="http://speckyboy.com/2010/07/28/top-10-free-wordpress-3-0-ready-themes/"><img class="size-full wp-image-6715 aligncenter" title="Top 10 Free WordPress 3.0 Ready Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-specky.png" alt="Top 10 Free WordPress 3.0 Ready Themes" width="550" height="200" /></a></p>
<p><a href="http://visionwidget.com/showcase/graphics/549-smashing-free-wordpress-30-themes.html"><img class="size-full wp-image-6716 aligncenter" title="30 Smashing Free WordPress 3.0 Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-vision.png" alt="30 Smashing Free WordPress 3.0 Themes" width="550" height="200" /></a></p>
<p><a href="http://www.hongkiat.com/blog/55-fresh-high-quality-wordpress-themes/"><img class="size-full wp-image-6717 aligncenter" title="55 Fresh &amp; High Quality WordPress Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-hong.png" alt="55 Fresh &amp; High Quality WordPress Themes" width="550" height="200" /></a></p>
<p><a href="http://naldzgraphics.net/freebies/45-free-wordpress-themes-with-appealing-designs/"><img class="size-full wp-image-6718 aligncenter" title="45 Free WordPress Themes with Appealing Designs" src="http://www.jonbishop.com/wp-content/uploads/2010/08/thtmes-naldz.png" alt="45 Free WordPress Themes with Appealing Designs" width="550" height="200" /></a></p>
<p><a href="http://www.1stwebdesigner.com/wordpress/free-portfolio-photo-gallery-wordpress-themes/"><img class="size-full wp-image-6719 aligncenter" title="24 Free Portfolio And Photo Gallery WordPress Themes" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-first.png" alt="24 Free Portfolio And Photo Gallery WordPress Themes" width="550" height="200" /></a></p>
<p><a href="http://crackingapps.com/25-best-free-photoblog-wordpress-themes-for-photographers/"><img class="size-full wp-image-6720 aligncenter" title="25 Best Free Photoblog WordPress Themes for Photographers" src="http://www.jonbishop.com/wp-content/uploads/2010/08/themes-cracking.png" alt="25 Best Free Photoblog WordPress Themes for Photographers" width="550" height="200" /></a></p>
<h2>Premium WordPress Themes</h2>
<p><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=8566_0_1_13" target="_blank"><img class="aligncenter" src="http://www.elegantthemes.com/affiliates/banners/570x100.jpg" border="0" alt="" width="570" height="100" /></a></p>
<h3><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=8566_0_1_13">Elegant Themes</a></h3>
<h3><a href="http://themeforest.net/">Theme Forest</a></h3>
<h3><a href="http://studiopress.com/">StudioPress</a></h3>
<h3><a href="http://woothemes.com/">WooThemes</a></h3>
<h3><a href="http://ithemes.com/">iThemes</a></h3>
<h3><a href="http://wordpress.org/extend/themes/commercial/">More Premium Themes On WordPress.org</a></h3>
<h2>Let Me Know What You Think!</h2>
<p>Please share your favorite WordPress themes or even just your favorite place to find them in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonbishop.com/2010/08/where-to-find-awesome-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<enclosure url="http://www.jonbishop.com/wp-content/uploads/2010/08/free-wordpress-themes.jpg" length="19092" type="image/jpg" /><media:content url="http://www.jonbishop.com/wp-content/uploads/2010/08/free-wordpress-themes.jpg" width="602" height="200" medium="image" type="image/jpeg" />	</item>
		<item>
		<title>How To Convert an XHTML Website Template into a WordPress Theme</title>
		<link>http://www.jonbishop.com/2010/03/convert-html-wordpress/</link>
		<comments>http://www.jonbishop.com/2010/03/convert-html-wordpress/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 18:31:07 +0000</pubDate>
		<dc:creator>Jon Bishop</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[Template Tags]]></category>
		<category><![CDATA[The Loop]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.jonbishop.com/?p=1837</guid>
		<description><![CDATA[So you have an XHTML]]></description>
			<content:encoded><![CDATA[<p>So you have an XHTML valid website template and you would like to put it on top of WordPress. Whether you are starting from scratch or moving your existing website to WordPress as a CMS, this guide will help you get the conversion done.<span id="more-1837"></span></p>
<p>Keep in mind that these are the basics and this is not a guide on how to <a href="http://codex.wordpress.org/Designing_Themes_for_Public_Release">develop themes for public release</a>.</p>
<h2>What You Will Need</h2>
<ul>
<li>An XHTML web template</li>
<li>A WordPress install</li>
<li>A text editor (Like <a href="http://www.adobe.com/products/dreamweaver/">Dreamweaver</a> or <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a>)</li>
<li>An FTP client (Like <a href="http://filezilla-project.org/">Filezilla</a>)</li>
</ul>
<h2>Getting Started</h2>
<p>First, let&#8217;s set up our theme files.</p>
<h3>Prepare your files</h3>
<p>For this tutorial we are going to use the minimum number of theme files needed to create a functional WordPress theme. Your existing template files should include the following:</p>
<ul>
<li>An HTML Template File</li>
<li>A CSS Stylesheet</li>
<li>An images folder</li>
</ul>
<p>You should rename your HTML Template File to &#8216;index.php&#8217; and your CSS Stylesheet to &#8216;style.css&#8217;. This is important and is how WordPress knows which files are which.</p>
<div id="attachment_1862" class="wp-caption aligncenter" style="width: 430px"><img class="size-full wp-image-1862" title="This is an example of what your theme folder should look like" src="http://www.jonbishop.com/wp-content/uploads/2010/03/wordpress-html3.jpg" alt="This is an example of what your theme folder should look like" width="420" height="109" /><p class="wp-caption-text">This is an example of what your theme folder should look like</p></div>
<h3>Add WordPress Theme Info (<a href="http://www.youtube.com/watch?v=bihANQeHZwY">video</a>)</h3>
<p>This is where your WordPress Theme gets your theme name, description, author link, etc. All you need to do is create a commented out area at the top of your stylesheet as follows:</p>
<blockquote><p>/*<br />
Theme Name: Rose<br />
Theme URI: the-theme&#8217;s-homepage<br />
Description: a-brief-description<br />
Author: your-name<br />
Author URI: your-URI<br />
Template: use-this-to-define-a-parent-theme&#8211;optional<br />
Version: a-number&#8211;optional<br />
.<br />
General comments/License Statement if any.<br />
.<br />
*/<br />
<em>CSS Goes here&#8230;</em></p></blockquote>
<h2>Adding Template Tags To Your Theme</h2>
<p><a href="http://codex.wordpress.org/Template_Tags">Template Tags</a> are bits of code that WordPress uses to populate your website with content. Different tags display different bits of information from the WordPress database. These are the main tags needed to make your WordPress theme work.</p>
<h3>Page Title &#8211; (<a href="http://www.youtube.com/watch?v=LloH-XEco84">video</a>)</h3>
<p>Change whatever is within your &lt;title&gt;&lt;/title&gt; tags to:</p>
<blockquote><p>&lt;?PHP wp_title(&#8221;); ?&gt;</p></blockquote>
<h3>Stylesheet &#8211; (<a href="http://www.youtube.com/watch?v=9dhI4MUyCDk">video</a>)</h3>
<p>We are going to need to swap out the call to our stylesheet with:</p>
<blockquote><p>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;&lt;?PHP bloginfo(&#8216;stylesheet_url&#8217;); ?&gt;&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</p></blockquote>
<h3>Plugin Hooks &#8211; (<a href="http://www.youtube.com/watch?v=vYUip_EYWEc">video</a>)</h3>
<p>Next you will need to add Action Hook Template Tags so WordPress plugins can access your theme. All you need to do is add:</p>
<blockquote><p>&lt;?PHP wp_head(); ?&gt;</p></blockquote>
<p>to your header (Usually write above the closing &lt;/head&gt; tag).</p>
<p>Then you should add:</p>
<blockquote><p>&lt;?PHP wp_footer(); ?&gt;</p></blockquote>
<p>to your footer (Usually write above your &lt;/body&gt; tag).</p>
<h3>Media and Script Paths &#8211; (<a href="http://www.youtube.com/watch?v=vvUsdC_P9L0">video</a>)</h3>
<p>By default, your paths will most likely reference your site root. You will need to point all of your multimedia, scripts and stylesheets to your new theme folder within the WordPress file structure using:</p>
<blockquote><p>&lt;?PHP bloginfo(&#8216;template_directory&#8217;); ?&gt;</p></blockquote>
<p>The easiest way to do this is to do a search and replace for &#8216;src=&#8217; and add the appropriate template tags. This is not fool proof as not all template structures are created equal but it will work a majority of the time.</p>
<div id="attachment_1845" class="wp-caption aligncenter" style="width: 430px"><img class="size-full wp-image-1845" title="Search and Replace to change paths to WordPress theme paths" src="http://www.jonbishop.com/wp-content/uploads/2010/03/wordpress-html12.jpg" alt="Search and Replace to change paths to WordPress theme paths" width="420" height="175" /><p class="wp-caption-text">Search and Replace to change paths to WordPress theme paths</p></div>
<h2>Adding The WordPress Loop</h2>
<p><a href="http://codex.wordpress.org/The_Loop">The WordPress loop</a> is what handles all of your websites content. Its main components are:</p>
<ul>
<li>A header</li>
<li>A permalink</li>
<li>Some Content</li>
</ul>
<p>First you will need to identify where your content starts/repeats (if it repeats). The easiest way to do this is to look for your content&#8217;s header and begin The Loop there. The Loop will usually end immediately after your content unless you are displaying extra information below your entries. You will also need to identify where your content begins and ends. <em>Scroll to the end of this section to view some example code.</em></p>
<h3>The Loop Code &#8211; (<a href="http://www.youtube.com/watch?v=R5wcOGHbNZo">video</a>)</h3>
<p>Beginning:</p>
<blockquote><p>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</p></blockquote>
<p>End:</p>
<blockquote><p>&lt;?php endwhile; endif; ?&gt;</p></blockquote>
<h3>Template Tags Within The Loop &#8211; (<a href="http://www.youtube.com/watch?v=TtzO017cNYQ">video</a>)</h3>
<p>The Title:</p>
<blockquote><p>&lt;?php the_title(); ?&gt;</p></blockquote>
<p>The Permalink</p>
<blockquote><p>&lt;?php the_permalink() ?&gt;</p></blockquote>
<p>The Content</p>
<blockquote><p>&lt;?php the_content(&#8216;&lt;p&gt;Read more&lt;/p&gt;&#8217;); ?&gt;</p></blockquote>
<h3>Example Code</h3>
<p>So <a href="http://www.jonbishop.com/wp-content/uploads/2010/03/example1.txt" target="_blank">this</a> becomes <a href="http://www.jonbishop.com/wp-content/uploads/2010/03/example2.txt" target="_blank">this</a>.</p>
<h2>Navigation &#8211; (<a href="http://www.youtube.com/watch?v=7XQigs-t6pk">video</a>)</h2>
<p>Most themes will have the navigation within an unordered list. This makes things easy for you. All you need to do is replace the list elements (everything between the &lt;ul&gt;&lt;/ul&gt; tags) with the following:</p>
<blockquote><p>&lt;?PHP wp_list_pages(&#8216;title_li=&amp;depth=1&amp;sort_column=menu_order&amp;exclude=&#8217;); ?&gt;</p></blockquote>
<p>This is the most basic of menus and wont display child pages. You can exclude pages by simply adding the page ids separated by comas after &#8220;exclude=&#8221;. Learn more about <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">wp_list_pages()</a>.</p>
<h2>Upload and Activate Your Theme</h2>
<p>Now all you have to do is <a href="http://wordpress.thelinuxpenguin.com/">upload your theme</a> folder which should now consist of:</p>
<ul>
<li>An index.php file with custom code</li>
<li>A CSS file with header information about the theme</li>
<li>An images folder with all of your images</li>
</ul>
<p>If all goes accordingly you should have a functional WordPress theme that allows you to add new pages and posts as well as use most popular WordPress plugins. <strong>It is important to note that you will not be able to add widgets to your sidebar and people will not be able to comment on posts. There may also be some other limitations due to the themes simplicity.</strong></p>
<p>Feel free to <a href="http://www.jonbishop.com/contact/">contact me</a> if you would like to learn how to bring your theme to the next level with a sidebar, comments and other interactive elements.</p>
<h2>More Resources</h2>
<ul>
<li><a href="http://codex.wordpress.org/Theme_Development">Theme Development</a></li>
<li><a href="http://codex.wordpress.org/Stepping_Into_Templates">Stepping Into Templates</a></li>
<li><a href="http://www.yvoschaap.com/wpthemegen/">WordPress Theme generator</a></li>
</ul>
<div style="text-align: center; width: 100%;"><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jonbishop.com/2010/03/convert-html-wordpress/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
	<enclosure url="http://www.jonbishop.com/wp-content/uploads/2010/03/wordpress-html.jpg" length="9183" type="image/jpg" /><media:content url="http://www.jonbishop.com/wp-content/uploads/2010/03/wordpress-html.jpg" width="470" height="150" medium="image" type="image/jpeg" />	</item>
		<item>
		<title>Creating A Video Section On Your WordPress Blog</title>
		<link>http://www.jonbishop.com/2009/10/creating-a-video-section-on-your-wordpress-blog/</link>
		<comments>http://www.jonbishop.com/2009/10/creating-a-video-section-on-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:40:35 +0000</pubDate>
		<dc:creator>Jon Bishop</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress Hack]]></category>

		<guid isPermaLink="false">http://www.jonbishop.com/?p=1490</guid>
		<description><![CDATA[Awhile back I decided to]]></description>
			<content:encoded><![CDATA[<p>Awhile back I decided to start posting videos on my blog. Once I had a few videos up I began to rethink my approach. Ultimately I wanted to prevent videos from showing up where normal posts are displayed and instead display my most recent video in the sidebar.<span id="more-1490"></span></p>
<p>To do this, I would need to:</p>
<ul>
<li>Suppress all video posts from being displayed with other posts</li>
<li>Create an archive of all video posts</li>
<li>Resize and place my most recent video in the sidebar</li>
</ul>
<p><strong>The first step</strong> was pretty easy. I just created a new category called &#8220;Video Post&#8221; and assigned it to all of my video posts. This would become a fairly intuitive list of videos people could access at their will.</p>
<p><strong>Next</strong> I wanted to remove all video posts from being displayed among other posts on the home page. However, I still wanted my videos to be displayed in RSS feeds as well as archives and search pages. To do this, I just modified the default WordPress query used to pull the most recent posts by placing the following code before &#8220;The Loop&#8221;.</p>
<div class="geshi no php">
<div class="head">//Hide a category from the home page</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw3">global</span> <span class="re1">$wp_query</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">query_posts<span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw3">array_merge</span><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw3">array</span><span class="br0">&#40;</span><span class="st0">&#39;cat&#39;</span> <span class="sy0">=&amp;</span>gt<span class="sy0">;</span> <span class="nu0">-66</span><span class="br0">&#41;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$wp_query</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>query</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p><strong>Be sure to change</strong> &#8216;-66&#8242; to the id of whatever category you are trying to hide. <a href="http://wordpress.org/support/topic/226313">How do I find the category IDs?</a></p>
<p>Also, if you are not sure where the WordPress Loop begins, it is usually located inside of index.php in your theme folder and starts with:</p>
<div class="geshi no php">
<div class="head">//Beginning of the WordPress Loop located in index.php of theme</div>
<ol>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span> have_posts<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="sy0">:</span> <span class="kw1">while</span> <span class="br0">&#40;</span> have_posts<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="sy0">:</span> the_post<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p><strong>The last step</strong> is to display my most recent video in the sidebar. To do this I decided my best course of action was to save the embed code of my videos into a custom field as well as within the content of the post. This would allow me to easily pull the embed code and I would still be able to add text along with my video within the content.</p>
<p style="text-align: center;"><img class="size-full wp-image-1502 aligncenter" title="Create custom field for embed code" src="http://www.jonbishop.com/wp-content/uploads/2009/10/video_embed.jpg" alt="Create custom field for embed code" width="470" height="100" /></p>
<p>In the example below I used the custom field &#8216;embed&#8217; in my posts. Just paste this code in your sidebar where you would like your video to be displayed.</p>
<div class="geshi no php">
<div class="head">//Display resized most recent video along with link to previous video</div>
<ol>
<li class="li1">
<div class="de1">ID<span class="sy0">,</span> <span class="re1">$key</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re1">$custom_field</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="co1">// Set values</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$width</span> <span class="sy0">=</span> <span class="st0">&#39;width=&quot;&#39;</span><span class="sy0">.</span><span class="re1">$width</span><span class="sy0">.</span><span class="st0">&#39;&quot;&#39;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$height</span> <span class="sy0">=</span> <span class="st0">&#39;height=&quot;&#39;</span><span class="sy0">.</span><span class="re1">$height</span><span class="sy0">.</span><span class="st0">&#39;&quot;&#39;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$custom_field</span> <span class="sy0">=</span> <span class="kw3">preg_replace</span><span class="br0">&#40;</span> <span class="st0">&#39;/width=&quot;[^&quot;]+&quot;/&#39;</span> <span class="sy0">,</span> <span class="re1">$width</span> <span class="sy0">,</span> <span class="re1">$custom_field</span> <span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="re1">$custom_field</span> <span class="sy0">=</span> <span class="kw3">preg_replace</span><span class="br0">&#40;</span> <span class="st0">&#39;/height=&quot;[^&quot;]+&quot;/&#39;</span> <span class="sy0">,</span> <span class="re1">$height</span> <span class="sy0">,</span> <span class="re1">$custom_field</span> <span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw3">echo</span> <span class="st0">&#39;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0"> &lt;li id=&quot;recent-videos&quot; class=&quot;widget widget_recent_videos&quot;&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&lt;h3&gt;Videos&lt;/h3&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&#39;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>ul<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sy0">&lt;</span>li style<span class="sy0">=</span><span class="st0">&quot;text-align: center;&quot;</span><span class="sy0">&gt;&lt;</span>strong<span class="sy0">&gt;&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;&amp;lt;?=get_permalink(); ?&amp;gt;&quot;</span><span class="sy0">&gt;</span>ID<span class="br0">&#41;</span><span class="sy0">;</span> ?<span class="sy0">&amp;</span>gt<span class="sy0">;&lt;/</span>a<span class="sy0">&gt;&lt;/</span>strong<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;</span>ul<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="sy0">&lt;</span>li<span class="sy0">&gt;</span>Next Video<span class="sy0">:</span> <span class="sy0">&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;&amp;lt;?=get_permalink(); ?&amp;gt;&quot;</span><span class="sy0">&gt;</span>ID<span class="br0">&#41;</span><span class="sy0">;</span> ?<span class="sy0">&amp;</span>gt<span class="sy0">;&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;/</span>ul<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;/</span>li<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;/</span>ul<span class="sy0">&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">&lt;/</span>li<span class="sy0">&gt;</span></div>
</li>
</ol>
</div>
<p>You will notice I also included a link to my last video however you can remove this or replace it with a link to your video archive. This code should work with most video embed codes. Be sure to change the width and height so everything fits nicely into your sidebar.</p>
<p>And that&#8217;s it. Now all you need to do when adding a new video post is:</p>
<ol>
<li>Assign the post to your video category</li>
<li>Paste your embed code into the content and your &#8216;embed&#8217; custom field</li>
<li>And Publish Your Post!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.jonbishop.com/2009/10/creating-a-video-section-on-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	<enclosure url="http://www.jonbishop.com/wp-content/uploads/2009/10/video_embed_wordpress.jpg" length="26007" type="image/jpg" /><media:content url="http://www.jonbishop.com/wp-content/uploads/2009/10/video_embed_wordpress.jpg" width="470" height="150" medium="image" type="image/jpeg" />	</item>
		<item>
		<title>Why Is Thesis Such A Great Premium WordPress Theme?</title>
		<link>http://www.jonbishop.com/2009/09/why-is-thesis-such-a-great-premium-wordpress-theme/</link>
		<comments>http://www.jonbishop.com/2009/09/why-is-thesis-such-a-great-premium-wordpress-theme/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 14:25:28 +0000</pubDate>
		<dc:creator>Jon Bishop</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.jonbishop.com/?p=1257</guid>
		<description><![CDATA[There are 3 main reasons]]></description>
			<content:encoded><![CDATA[<p>There are 3 main reasons I love <a href="http://wpbusiness.info/theme/thesis/">Thesis</a> and why I use it for my blog;</p>
<ul>
<li><strong>SEO</strong></li>
<li><strong>Awesome Layout</strong></li>
<li><strong>It&#8217;s constantly being optimized</strong></li>
</ul>
<p><span id="more-1257"></span><br />
I guess what originally hooked me was the fact that most of the blogs I was reading by professionals within my industry were already on the <a href="http://diythemes.com/?a_aid=jonbish">Thesis theme</a>. You&#8217;ve got <a href="http://www.chrisbrogan.com">Chris Brogan</a> (<a href="http://www.chrisbrogan.com/thesis-is-my-favorite-premium-wordpress-theme/">who wrote about it here</a>), <a href="http://www.twitip.com/">Darren Rowse</a> <a href="http://www.problogger.net/archives/2009/05/01/thesis-wordpress-theme-version-15-launches/">(who wrote about it here</a>), <a href="http://www.copyblogger.com">Brian Clark</a> (<a href="http://www.copyblogger.com/thesis-theme-wordpress/">who wrote about i here</a>), <a href="http://www.mattcutts.com/blog/">Matt Cutts</a> and <a title="Industry professionals using Thesis WordPress theme" href="http://wpbusiness.info/theme/thesis/">more</a>.</p>
<h3>So now a little about what makes it so great.</h3>
<p><a href="http://twitter.com/MattCutts">Matt Cutts</a> <a href="http://www.mattcutts.com/blog/seo-for-bloggers/">recently spoke at WordCamp San Francisco 2009</a> where he discussed WordPress&#8217;s ability to satisfy 90% of your websites SEO. WordPress itself takes care of the obvious things like pretty URLs, syndication, interlinking pages, hiding duplicate content, etc. However, one thing WordPress does not control is the layout of the theme you are using. This is where Thesis comes in and satisfies several immediate needs:</p>
<ul>
<li>Cleanly laid out HTML for easy indexing by search engines</li>
<li>Extra fields that allow editing of header meta on a page to page basis</li>
<li>Clean, easy to read typography</li>
</ul>
<h3>But if everyone had the same theme, wouldn&#8217;t that get kind of dull?</h3>
<p>Sure, if everyone was using the same settings. Thesis comes with <a href="http://www.jonbishop.com/wp-content/uploads/2009/09/Thesis_settings1.jpg">two new settings pages</a> under the appearance tab of your admin panel. You can move sidebars around, change major content area, and control all your fonts across the entire site.</p>
<p>Now while every other theme out there may eventually become outdated, I know I&#8217;m safe with Thesis because they are consistently releasing new versions. Their unique method for customizing the theme allows for easy upgrades and a lot more control. They have even added several new wordpress hooks that <a href="http://wordpress.org/extend/plugins/search.php?q=thesis">developers have already begun integrating into their plugins</a> for easy one-step setup.</p>
<h3>But I like it for the cutting edge look and feel</h3>
<p>This was probably the culprit for the themes instant appeal in my eyes. Out of the box, the home page of the theme allows you to display excerpts in a slick boxlike fashion. You also get a dynamic content area in your sidebar that you can change on a post to post basis, great for promoting services relevant to the content your readers are viewing. Finally, they&#8217;ve added options to your posts and pages that allow you to display images in your posts that are automatically resized for the excerpts on the home page.</p>
<p>I&#8217;ve never promoted a product on my blog because I feel money can dilute an honest review by making it slightly more biased in any one direction. However, with Thesis I will make an exception. Ever since I&#8217;ve started using it I&#8217;ve been able to focus a lot more on content creation and less about SEO and blog maintenance. I very much look forward to future releases and hope you can too.</p>
<p><em>Disclaimer: All links to <a href="http://wpbusiness.info/theme/thesis/">Thesis</a></em><em> from this blog are an affiliate link. If you purchase the theme through one of these links I will receive a percentage as commission. This is the first (and probably only) product I would ever endorse for money.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonbishop.com/2009/09/why-is-thesis-such-a-great-premium-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	<enclosure url="http://www.jonbishop.com/wp-content/uploads/2009/09/thesis.jpg" length="17850" type="image/jpg" /><media:content url="http://www.jonbishop.com/wp-content/uploads/2009/09/thesis.jpg" width="470" height="150" medium="image" type="image/jpeg" />	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 16/33 queries in 0.462 seconds using disk: basic

Served from: jonbishop.com @ 2012-02-08 20:30:20 -->
