<?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>Peter Coughlin &#187; WordPress Themes</title>
	<atom:link href="http://petercoughlin.com/category/wordpress-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://petercoughlin.com</link>
	<description>Currently Focusing on WordPress Customization</description>
	<lastBuildDate>Mon, 12 Oct 2009 17:39:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Create Page Templates In WordPress</title>
		<link>http://petercoughlin.com/page-templates-in-wordpress/</link>
		<comments>http://petercoughlin.com/page-templates-in-wordpress/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 14:59:31 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Page Templates Wordpress]]></category>

		<guid isPermaLink="false">http://petercoughlin.com/?p=157</guid>
		<description><![CDATA[Custom page templates in WordPress can seem daunting at first, but once you understand the concept behind them and how to apply it, they&#039;re pretty straightforward. Here&#039;s how they work&#8230;
As you probably know, WordPress keeps all your content in a database, and it uses themes to determine how to display that content. That&#039;s why when [...]]]></description>
			<content:encoded><![CDATA[<p>Custom page templates in WordPress can seem daunting at first, but once you understand the concept behind them and how to apply it, they&#039;re pretty straightforward. Here&#039;s how they work&#8230;</p>
<p>As you probably know, WordPress keeps all your content in a database, and it uses themes to determine how to display that content. That&#039;s why when you change your WordPress theme you can get an entirely different looking blog with exactly the same content &#8211; it&#039;s because content and presentation are kept separate.<span id="more-157"></span></p>
<p>Each WordPress theme is kept in it&#039;s own folder which contains specific files for displaying the various pages of your blog. For example, if there is a file called &#034;single.php&#034; in your theme folder it will be used to display any single post on your blog. By changing &#034;single.php&#034; you can alter how single posts are displayed.</p>
<p>Because we&#039;re going to be creating a custom page template, we&#039;ll be looking for a file called &#034;page.php&#034; in your theme folder. This is the file which determines how individual pages are displayed. The first thing we want to do is make a copy of it and name it something like &#034;template_page.php&#034; so we can identify it later. By the way, if your theme doesn&#039;t have a file called &#034;page.php&#034; you can just make a copy of the &#034;index.php&#034; file instead.</p>
<p>To make this page into a template which WordPress recognizes (and that you&#039;ll be able to use), we need to add the following code right at the top of the file;</p>
<pre>&lt;?php
/*
Template Name: My Template
*/
?&gt;</pre>
<p>The text after &#034;Template Name&#034; can be anything you like, but bear in mind it will appear in the &#034;Page Template&#034; drop down box, so be sure to give your template a meaningful name. Once you&#039;ve copied this file to your theme folder it will be available to WordPress.</p>
<p>Well, believe it or not, you have just created a page template. Quick, let&#039;s see if it works&#8230; Go to your blog admin section and create a new page, but before you publish it, scroll down and look for a &#034;Page Template&#034; section with a drop-down box. Click it and you should see your template listed in there &#8211; it&#039;s name will be the same text you put after the &#034;Template Name&#034; at the top of the file. Select your template name and publish the page. Congratulations!</p>
<p>Hmmm&#8230; it probably doesn&#039;t look any different. Well, that&#039;s because we didn&#039;t actually change anything in the file, apart from making it into a template, so it will display content in exactly the same way as the file we copied. Let&#039;s make some changes and see what happens&#8230;</p>
<p>In your new template file, you&#039;ve probably got a line of code that looks something like this;</p>
<pre>&lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;</pre>
<p>That basically tells WordPress to display the Title of the page. Add an extra line right after it that contains this;</p>
<pre>&lt;?php echo '&lt;p&gt;This page was produced by my excellent page template!&lt;/p&gt;'; ?&gt;</pre>
<p>Browse to the page which uses your page template, and you should see the text &#034;This page was produced by my excellent page template!&#034; right after your title.</p>
<p>That&#039;s pretty much how page templates in WordPress work. I find them perfect for such things as contact pages and sitemaps ..etc, but you can put just about anything you like in your template and it will be displayed by WordPress. Your imagination really is the limit.</p>
<p>As an example I&#039;ve created a page template which aims to help you <a href="http://petercoughlin.com/finding-a-clickbank-winner/">find a ClickBank winner</a> by showing items from the ClickBank marketplace that have a minimum commission and gravity. I used exactly the same principle as I&#039;ve outlined in this post. Let me know how you get on&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://petercoughlin.com/page-templates-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Niche WordPress Theme &#8211; Beachbum</title>
		<link>http://petercoughlin.com/niche-wordpress-theme-beachbum/</link>
		<comments>http://petercoughlin.com/niche-wordpress-theme-beachbum/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 15:54:00 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Beachbum]]></category>
		<category><![CDATA[Free WordPress Theme]]></category>

		<guid isPermaLink="false">http://petercoughlin.com/?p=78</guid>
		<description><![CDATA[
Here&#039;s one of the themes I use &#8211; beachbum &#8211; which is what I want to be when I grow up&#8230;
This theme is designed to be used for a review or single affiliate product type site. To that end, it&#039;s got an extra sidebar on the left which is ideally suited to your recommended product. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-65 border" title="Beachbum theme" src="http://petercoughlin.com/wp-content/uploads/beachbum-theme.jpg" alt="" width="300" height="240" /></p>
<p>Here&#039;s one of the themes I use &#8211; beachbum &#8211; which is what I want to be when I grow up&#8230;</p>
<p>This theme is designed to be used for a review or single affiliate product type site. To that end, it&#039;s got an extra sidebar on the left which is ideally suited to your recommended product. The theme supports widgets so the easiest way to include a review or recommendation is to add a text widget to sidebar2.<span id="more-78"></span></p>
<p>One of my pet hates is having to edit theme files once they&#039;re up on the server, so what I started to do was include a Theme Options page whenever I made a new WordPress theme. This allowed me to add options to the theme which I could change easily, without editing any of the theme files.</p>
<p>This theme has options too. When you&#039;re in your admin pages and you choose this theme, you&#039;ll see an extra menu appear alongside the &#034;Theme Editor&#034; menu &#8211; Theme Options. Click on that to see what you can configure for this particular theme.</p>
<h3>Theme options</h3>
<p>At the moment, these are the things you can mess with;</p>
<ol>
<li>Main keyword phrase</li>
<li>Color scheme</li>
<li>Font family</li>
<li>Whether to show the header text</li>
<li>Which pages to appear in the menu bar</li>
</ol>
<p>Most of them are probably obvious except perhaps the &#034;main keyword phrase&#034; which I&#039;ll explain now.</p>
<p><strong>Main keyword phrase</strong></p>
<p>As I mentioned, this theme is designed to be used with a particular niche, which often means a particular keyword phrase. If you type your main keyword phrase into this box, it will be used instead of your blog title in the meta title tag and within an H1 tag at the top of every page, along with the post or page title. Basically, it&#039;s a more keyword focused alternative to your blog title. You can leave it blank and your blog title will be used in the normal way.</p>
<p><strong>Color scheme</strong></p>
<p>The theme comes with 12 color schemes, which saves me trying to find a separate theme for each niche &#8211; I can usually find a color that fits.</p>
<p><strong>Font family</strong></p>
<p>It also comes with a choice of 6 font families. I admit I don&#039;t use this, but I know we all have our own favorite fonts so I threw it in to make it that bit more useful.</p>
<p><strong>Show header text</strong></p>
<p>Quite often I have a theme header graphic that already has text on it, so I wanted the option to turn off the blog title and description that normally appear in the header. The &#034;show header text&#034; option allows me to do that easily.</p>
<p><strong>Pages for menu bar</strong></p>
<p>Lastly, you can specify the WordPress page IDs of those pages you want to appear in the main menu bar, under the header. This is handy for linking to a review page ..etc.</p>
<p>These are the other additional options and features which aren&#039;t available as a setting in the Theme Options page.</p>
<p><strong>Header image</strong></p>
<p>To change the header image, just overwrite the existing one at wp-themes/beachbum/img/header.jpg with your own. It should be 750px by 150px, but it will get trimmed if it&#039;s any bigger than that.</p>
<p><strong>Custom CSS</strong></p>
<p>If you want to add any custom CSS code, all you need to do is create a CSS file called &#034;custom.css&#034; and drop it into the theme folder. It will automatically get picked up and applied.</p>
<p><strong>HTML Sitemap</strong></p>
<p>Oh yes, I almost forgot, it&#039;s got a built-in HTML sitemap template. Using this is as easy as assigning the &#034;Sitemap&#034; template to a page. Create a new page in the admin section, scroll down until you see a section for specifying the Page Template, and choose &#034;Sitemap&#034; from the drop-down list and save it. Hey presto &#8211; you have a sitemap page for your site with all pages, posts, categories, and feeds in a lovely list.</p>
<p>Ok, here is the download link. Don&#039;t hesitate to come back here and ask questions, make suggestions, or let me know about bugs.</p>
<div class="download"><a href="http://petercoughlin.com/wp-content/uploads/beachbum.zip">Download the Beachbum Theme</a></div>
]]></content:encoded>
			<wfw:commentRss>http://petercoughlin.com/niche-wordpress-theme-beachbum/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
