<?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>Lee Munroe &#187; Wordpress</title> <atom:link href="http://www.leemunroe.com/category/blog/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.leemunroe.com</link> <description>User Experience and Web Interface Designer Lee Munroe</description> <lastBuildDate>Thu, 09 Feb 2012 02:44:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Barcamp Belfast: The 7 Deadly Sins of WordPress</title><link>http://www.leemunroe.com/barcamp-belfast-7-deadly-sins-wordpress/</link> <comments>http://www.leemunroe.com/barcamp-belfast-7-deadly-sins-wordpress/#comments</comments> <pubDate>Mon, 27 Apr 2009 16:45:41 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Events]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[barcamp]]></category> <category><![CDATA[belfast]]></category> <category><![CDATA[event]]></category> <category><![CDATA[talk]]></category> <category><![CDATA[tips]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1282</guid> <description><![CDATA[I had the pleasure of attending and talking at Barcamp Belfast on Saturday (25th April) before dashing off and getting a plane to London for the marathon. I had a&#8230;<html><body><h1>400 Bad request</h1> Your browser sent an invalid request.</body></html> ]]></description> <content:encoded><![CDATA[<p>I had the pleasure of attending and talking at Barcamp Belfast on Saturday (25th April) before dashing off and getting a plane to <a
href="http://results-2009.london-marathon.co.uk/index.php?lastname=munroe&amp;firstname=lee&amp;club=&amp;gender=&amp;nation=&amp;event_id=MAS&amp;position=&amp;split=FINISHNET&amp;Submit=show+results+%3E%3E&amp;a=d&amp;o=s&amp;start_no=33659&amp;ostart_no=#">London for the marathon</a>.</p><p>I had a great morning and going by feedback from others the whole day was a great success with some <a
href="http://barcampbelfast.com/">fantastic speakers and over 350 attendees</a>. Well done to <a
href="http://goodonpaper.org">Andy Good</a> for putting it together, along with all those who helped out. <a
href="http://alaninbelfast.blogspot.com/2009/04/barcamp-belfast-2009-reflections.html">There&#8217;s a good video montage of the day here</a>.</p><p><span
id="more-1282"></span></p><h4>The 7 Deadly Sins of WordPress</h4><p>I got the ball rolling at 9.30am with my WordPress talk, looking at <strong>7 ways to make your (WordPress) blog more effective</strong>.</p><p>I thought that rather than put up my slides (which don&#8217;t really make sense out of context) I&#8217;d give an overview of the 7 points and the solutions.</p><h4>1. Backup</h4><p>Assume things will go wrong and the time will come when you&#8217;ll regret you didn&#8217;t backup (<strong>server problems, site gets hacked, client/other user deletes stuff, you muck it up yourself</strong>)</p><h5>Solution</h5><p><strong>Backup daily automatically</strong> with <a
href="http://wordpress.org/extend/plugins/wp-db-backup/">WP-DB-Plugin</a>. Your backup will be emailed to you daily and you don&#8217;t have to lift a finger.</p><h4>2. Easy Comments</h4><p>Make it as<strong> easy as possible for users to leave comments</strong>. Don&#8217;t put a barrier in their way in the form of <strong>captchas</strong> or having to <strong>signup</strong> to leave a comment. These are used to stop spam, but there are better user friendly ways.</p><h5>Solution</h5><p>To stop spam, install and activate <a
href="http://wordpress.org/extend/plugins/akismet/">Akismet</a> (which will put spam in a spam folder) and verify comments before they&#8217;re published.</p><h4>3. URLS</h4><p>The default URL for posts e.g. <strong>http://www.leemunroe.com/?p=1194</strong> doesn&#8217;t mean anything to users or search engines.</p><p><strong>http://www.leemunroe.com/tips-more-twitter-followers/</strong> means more to users (they now know what content is on that page) and <strong>search engines</strong> can allocate keywords to that page based on the url</p><h5>Solution</h5><p>Under <strong>Settings &gt; Permalinks</strong> click &#8216;Custom structure&#8217; and enter <strong>/%postname%/</strong>. This will change your URL so it includes the article title.</p><h4>4. Feed</h4><p>Make sure your RSS feed link is easy to find. It should be clearly linked to i<strong>n your sidebar and should be in the browsers address bar</strong> also (this is a common convention and there are also applications that will find your feed going by the link in your head).</p><p>By default WordPress will include this link, as will most themes, but if you&#8217;re designing your own theme it can often be overlooked.</p><h5>Solution</h5><p>Put this code between your &lt;head&gt; tags:</p><p><strong>&lt;link rel=&#8221;alternate&#8221; type=&#8221;application/rss+xml&#8221; title=“Title&#8221; href=&#8221;link-to-feed&#8221; /&gt;</strong></p><h4>5. Actions</h4><p>Once someone reads through your post it&#8217;s up to you to <strong>point them in the right direction of what their next actions should be</strong>. They could add a comment, read other articles on your site, help promote the post, follow you on Twitter etc.</p><h5>Solution</h5><p>Use the following plugins to <strong>suggest actions at the end of your post</strong>. These will help keep users on your site reading other articles or help to promote your post via social networking sites.</p><ul><li><a
href="http://wordpress.org/extend/plugins/similar-posts/">Similar posts plugin</a></li><li><a
href="http://wordpress.org/extend/plugins/wordpress-popular-posts/">Popular posts plugin</a></li><li><a
href="http://wordpress.org/extend/plugins/share-this/">Share this plugin</a> or <a
href="http://wordpress.org/extend/plugins/sociable/">sociable plugin</a></li></ul><h4>6. SEO</h4><p>For your posts to be found on Google they have to be well optimized. There are a few simple modifications you can make to help SEO.</p><h5>Solution</h5><p>Use the <a
href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All In One SEO Pack</a> and you can <strong>set titles, descriptions and keywords</strong> for your homepage, posts and pages.</p><h4>7. Text</h4><p>On the web, people don&#8217;t read they scan. You have roughly 3 seconds to grab the readers attention so your text should be easily read and scannable.</p><h5>Solution</h5><ul><li>Break blocks of text into smaller paragraphs</li><li>Use meaningful sub headings</li><li>Use lists where appropriate (bullet and numbered)</li><li>Highlight (bold) keywords</li><li>Make sure links stand out against other text</li><li>Remove unnecessary waffle text</li></ul><div
style="text-align:center;"><img
class="alignnone size-full wp-image-1289" title="belfast1" src="http://www.leemunroe.com/wp-content/uploads/belfast1.jpg" alt="B-E-L-F-A-S-T" width="540" height="405" /></div><p><a
href="http://www.flickr.com/photos/14524021@N04/">Photo thanks to Colin Parte</a></p><p>These are my 7 deadly sins of WordPress. It should take you no longer than an hour to implement these solutions and they will make a big difference to the effectiveness of your blog.</p><p><strong><em>There are lots of other ways you can improve the effectiveness of your blog so feel free to share any tips below.</em></strong></p><p><strong><em>Also if anyone has any links to #barcampbelfast roundups or photos, please share.</em></strong></p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/barcamp-belfast-7-deadly-sins-wordpress/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Guest Post: 10 Things To Do After Installing WordPress</title><link>http://www.leemunroe.com/guest-post-10-things-to-do-after-installing-wordpress/</link> <comments>http://www.leemunroe.com/guest-post-10-things-to-do-after-installing-wordpress/#comments</comments> <pubDate>Mon, 19 Jan 2009 17:03:06 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[author]]></category> <category><![CDATA[guest]]></category> <category><![CDATA[Objectives]]></category> <category><![CDATA[security]]></category> <category><![CDATA[writing]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=855</guid> <description><![CDATA[I started the year looking to write a few guest posts for other blogs and not just my own so I approached Michael from Pro Blog Design with an idea&#8230;]]></description> <content:encoded><![CDATA[<p>I started the year looking to <a
href="http://www.leemunroe.com/new-years-resolutions-for-2009/">write a few guest posts</a> for other blogs and not just my own so I approached <a
href="http://twitter.com/problogdesign">Michael</a> from <a
href="http://www.problogdesign.com/">Pro Blog Design</a> with an idea for a post.</p><p>The post takes a look at <a
href="http://www.problogdesign.com/wordpress/10-things-to-do-after-installing-wordpress/">what you should do after installing WordPress</a> and acts as a <strong>checklist</strong> that you can use to ensure you&#8217;ve changed and activated all that you should do for each of your <strong>WordPress sites</strong>. I came up with the checklist initially for myself but thought it would be useful to share, especially for beginners.</p><p><span
id="more-855"></span></p><p>Pro Blog Design focuses on blog and WordPress posts, and has a good established following so it was the perfect choice of site for this post.</p><p><a
href="http://www.problogdesign.com/wordpress/10-things-to-do-after-installing-wordpress/">Read the full post here.</a></p><p>Let me know you think and if there&#8217;s anything else you&#8217;d like covered.</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/guest-post-10-things-to-do-after-installing-wordpress/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Quicktip: Auto-Complete Blog Comment Fields</title><link>http://www.leemunroe.com/auto-complete-blog-comment-fields/</link> <comments>http://www.leemunroe.com/auto-complete-blog-comment-fields/#comments</comments> <pubDate>Tue, 13 Jan 2009 10:02:58 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[comments]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[plugins]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=845</guid> <description><![CDATA[You like to comment on blog posts but you&#8217;re sick of having to enter the usual name, mail and website fields (even with autofill it still requires effort). If you&#8217;re&#8230;]]></description> <content:encoded><![CDATA[<p>You like to comment on blog posts but you&#8217;re <strong>sick of having to enter the usual name, mail and website fields</strong> (even with autofill it still requires effort).</p><p>If you&#8217;re using Firefox there&#8217;s a handy solution. <a
href="https://addons.mozilla.org/en-US/firefox/addon/9095">EasyComment</a> is a <strong>plugin that stores this default information for you</strong>. Then, when you&#8217;re on a blog post and you want to leave a comment, click the <a
href="https://addons.mozilla.org/en-US/firefox/addon/9095">easyComment</a> button and <strong>it will fill in all the fields</strong>. You can even enter a default message like &#8216;Nice post, thanks&#8217; if that&#8217;s all you want to say.</p><p><span
id="more-845"></span></p><div
style="text-align:center;"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-36.png" border="0" alt="Picture 36.png" width="540" height="460" /></div><p><a
href="https://addons.mozilla.org/en-US/firefox/addon/9095">Click here to get easyComment.</a></p><p>The easyComment button is located at the bottom of your browser window.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/easy.jpg" border="0" alt="easy.jpg" width="310" height="145" /></div><p>Without easyComment, it takes approximately 10 seconds to fill in your name, email and url. Assuming you leave 1 comment per day, that&#8217;s <strong>70 seconds per week</strong> or <strong>310 seconds per month</strong> or 3,650 seconds per year you&#8217;ll save. That&#8217;s an<strong> extra hour</strong> you could be playing Halo or World of Warcraft ;)</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/auto-complete-blog-comment-fields/feed/</wfw:commentRss> <slash:comments>21</slash:comments> </item> <item><title>Quicktip: Update your WordPress copyright date automatically</title><link>http://www.leemunroe.com/quicktip-update-your-wordpress-copyright-date-automatically/</link> <comments>http://www.leemunroe.com/quicktip-update-your-wordpress-copyright-date-automatically/#comments</comments> <pubDate>Thu, 08 Jan 2009 13:04:50 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[copyright]]></category> <category><![CDATA[date]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[year]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=832</guid> <description><![CDATA[New year, time to go through all your websites and blogs and update the copyright date that you placed in the footer, right? Not if you were smart and developed&#8230;]]></description> <content:encoded><![CDATA[<p>New year, time to go through all your websites and blogs and update the copyright date that you placed in the footer, right?</p><p>Not if you were smart and developed your site so it updates automatically.</p><p><span
id="more-832"></span></p><h4>Solution</h4><p>PHP and WordPress can update your copyright year automatically.</p><p>Just place this code where you want the year to appear and voila, your year will change to 2009 (and will update automatically for years to come).</p><pre><code>&lt;?php echo date('Y'); ?&gt;</code></pre><p>Admittedly I hadn&#8217;t done this myself until today ;)</p><h4>Don&#8217;t use the_time</h4><p>I seen a couple of solutions using <a
href="http://codex.wordpress.org/Template_Tags/the_time">the_time tag</a> in WordPress, but this only displays the year of the last blog post in the_loop.</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/quicktip-update-your-wordpress-copyright-date-automatically/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>10 plugins you should be using in your WordPress theme or blog</title><link>http://www.leemunroe.com/10-plugins-for-your-wordpress-theme-blog/</link> <comments>http://www.leemunroe.com/10-plugins-for-your-wordpress-theme-blog/#comments</comments> <pubDate>Mon, 13 Oct 2008 02:39:25 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Blog]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[plugins]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=1335</guid> <description><![CDATA[Nearly everything you&#8217;ll need to do on WordPress someone&#8217;s been there and done it first. One of the great things about WordPress is that there&#8217;s so many plugins available and&#8230;]]></description> <content:encoded><![CDATA[<p>Nearly everything you&#8217;ll need to do on WordPress someone&#8217;s been there and done it first. One of the great things about WordPress is that there&#8217;s so many plugins available and they&#8217;re so easy to install on your theme.</p><p>Here&#8217;s 10 (+bonus) plugins that I used on my WordPress theme that should aid both you and your readers.</p><h4>1. <a
href="http://rmarsh.com/plugins/popular-posts/">Popular posts</a></h4><p>Over time your most popular and useful posts will slowly fade away into your archives. Use this handy plugin so you can showoff your top posts to new readers in your sidebar.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-111.png" border="0" alt="Popular posts" width="214" height="190" /></div><p><span
id="more-1335"></span></p><h4>2. <a
href="http://urbangiraffe.com/plugins/redirection/">Redirection</a></h4><p>Highly recommended. Takes a log of any 404 (page not found) errors on your site and then you can add 302 redirects for these errors, ensuring that future users don&#8217;t come across the same errors and search engine bots are directed towards the correct url. Particularly useful if you change the structure of your site and all your old incoming links break.</p><p><strong>Edit:</strong> It lets you add 301 redirects (i.e. permanent redirects) rather than 302 redirects</p><div
class="blog-img"><img
class="alignnone size-full wp-image-276" title="picture-122" src="http://www.leemunroe.com/wp-content/uploads/picture-122.png" alt="Redirection" /></div><h4>3. <a
href="http://katesgasis.com/2005/10/24/sideblog/">Sideblog</a></h4><p>I introduced a sideblog into my site so I could refresh my content daily without the need for having to write long articles. It&#8217;s good to share other sites you come across.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-131.png" border="0" alt="Sideblog" width="223" height="179" /></div><h4>4. <a
href="http://rmarsh.com/plugins/similar-posts/">Similar</a></h4><p>If a user enjoys reading one of your articles, chances are they&#8217;ll enjoy your related articles. Keep them reading on your site as long as possible by recommending similar posts.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-141.png" border="0" alt="Similar posts" width="304" height="135" /></div><h4>5. <a
href="http://priyadi.net/archives/2005/09/27/wordpress-plugin-code-autoescape/">Code Auto Escape</a></h4><p>This handy plugin is for writing articles or tutorials that include code snippets. Everything you write between the <code>code</code> tags will be escaped, so you can just copy and paste the code from your editor.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-18.png" border="0" alt="Code auto escape" width="467" height="84" /></div><h4>6. <a
href="http://zenpax.com/gravatars2/">Gravatars 2</a></h4><p>Add a face and some personalisation to your user comments by adding Gravatars. Users can associate gravatars with their email address by uploading a photo on <a
href="http://gravatar.com">gravatar.com</a>.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-19.png" border="0" alt="Gravatars" width="255" height="61" /></div><h4>7. <a
href="http://yoast.com/wordpress/sociable/">Sociable</a></h4><p>Sociable adds the tiny icons to the end of your post that allows your users to share and promote your article via external networking sites. It is fully customisable so you can decide what icons you want listed.</p><div
class="blog-img"><img
class="alignnone size-full wp-image-277" title="picture-201" src="http://www.leemunroe.com/wp-content/uploads/picture-201.png" alt="Sociable" /></div><h4>8. <a
href="http://txfx.net/code/wordpress/subscribe-to-comments/">Subscribe to comments</a></h4><p>This is a good way to get conversations going on your blog. Allowing a user to subscribe to comments means that every time someone comments, they get notified, which can potentially get you another comment from them.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-21.png" border="0" alt="Subscribe to comments" width="342" height="119" /></div><h4>9. <a
href="http://lesterchan.net/portfolio/programming/php/">WP-Pagenavi</a></h4><p>The default pagination with WordPress isn&#8217;t great so dicky it up a bit with this sweet plugin.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-22.png" border="0" alt="Pagination" width="365" height="71" /></div><h4>10. <a
href="http://akismet.com/">Akismet</a></h4><p>Stops *most* of the spam that comes through as comments on your blog.</p><p>You will need an API key to activate Akismet on your blog. To get this, <a
href="http://wordpress.com/signup/">signup to WordPress.com</a> and your API key should be emailed to you. Alternatively, login to WordPress.com and select &#8216;Edit Profile&#8217; from &#8216;My Account&#8217;. Your API key should be displayed on this page.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-23.png" border="0" alt="Akismet" width="389" height="49" /></div><h4>Bonus: <a
href="http://www.aaronforgue.com/projects/amazon-showcase/">Amazon Showcase</a></h4><p><a
href="https://affiliate-program.amazon.co.uk/gp/associates/join/main.html">Sign up for an associates account on Amazon</a> then for every book you refer to someone, you will get a percentage of the sale in your pocket. This showcase plugin allows you to easily show your favorite books and links them through to Amazon with your referral ID.</p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-24.png" border="0" alt="Picture 24.png" width="302" height="117" /></div><p>Go one step further and <a
href="http://astore.amazon.co.uk/">setup an aStore</a> so you can show your users all the books you recommend.</p><div
class="blog-img"><img
class="alignnone size-full wp-image-278" title="picture-251" src="http://www.leemunroe.com/wp-content/uploads/picture-251.png" alt="" /></div><h4>Further Reading</h4><ul><li><a
href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a></li><li><a
href="http://yoast.com/wordpress/">Yoast WordPress plugins</a></li><li><a
href="http://www.webdesignerwall.com/general/useful-wordpress-plugins/">Useful WordPress plugins</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/10-plugins-for-your-wordpress-theme-blog/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Tips and hacks for creating your own WordPress theme</title><link>http://www.leemunroe.com/tips-and-hacks-for-creating-your-own-wordpress-theme/</link> <comments>http://www.leemunroe.com/tips-and-hacks-for-creating-your-own-wordpress-theme/#comments</comments> <pubDate>Mon, 06 Oct 2008 12:58:16 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=221</guid> <description><![CDATA[WordPress is a great blogging engine. It&#8217;s easy to get it up and running and there&#8217;s a lot of free themes available. But if you want to be a bit&#8230;]]></description> <content:encoded><![CDATA[<p><a
href="http://www.wordpress.org">WordPress</a> is a great blogging engine. It&#8217;s easy to get it up and running and there&#8217;s a lot of free themes available. But if you want to be a bit more creative and design your own theme or even use WordPress as a CMS (content management system), this can be easily done. The <a
href="http://www.leemunroe.com/new-website-design-is-up-and-running/">recent redesign of my website</a> has used WordPress as a CMS.  I&#8217;ve noted several useful tips and hacks that I came across while designing my theme that may come in useful.<br
/> <span
id="more-221"></span><br
/> Before using the snippets below you might want to start with the basics of designing your own theme. Check out these useful websites for step by step guides on designing your own themes and templates.</p><ul><li><a
href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">So you want to create WordPress themes huh?</a></li><li><a
href="http://codex.wordpress.org/Stepping_Into_Templates">Official WordPress codex</a></li><li><a
href="http://themetation.com/2008/07/14/how-to-create-wordpress-themes-from-scratch-part-1/">How to create a WordPress theme from scratch</a></li></ul><h4>Referencing images in your theme</h4><p>Referencing images in your stylesheet (style.css) are relative.</p><pre><code>background:url(images/myimage.gif)</code></pre><p>Referencing images in your html templates are absolute so use the template directory tag.</p><pre><code>&lt;img src="&lt;?php bloginfo('template_directory'); ?&gt;/images/myimage.gif" alt="" /&gt;</code></pre><h4>Full size images</h4><p>WordPress 2.6 resizes your images to 500px width, even when you tick the full width option, so there&#8217;s a hack to get around this. Go to /wp-includes/media.php on line 84 and comment that line (//)</p><pre><code>// any other type: use the real image and constrain it
// list( $width, $height ) = image_constrain_size_for_editor( $meta['width'], $meta['height'], $size );</code></pre><p>This way instead of <code>&lt;img class="..." src="..." alt="" width="..." height="..." /&gt;</code> you will get <code>&lt;img class="..." src="..." alt="" /&gt;</code><br
/> Thanks to <a
href="http://wordpress.org/support/profile/401469">parisoto</a> for this hack.</p><h4>Exclude specific categories</h4><p>If you want to exclude or only include specific categories, e.g. you only want your portfolio page to include posts with the portfolio category, use query posts before your loop.</p><pre><code>&lt;?php query_posts('cat=-2'); ?&gt;</code></pre><p>This would remove the category with ID 2 from the list. You can get your category IDs by hovering or clicking on them in your admin area.  I noticed this can cause a pagination problem though, so if you&#8217;re paginating use the code below.</p><pre><code>&lt;?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts($query_string . "&amp;cat=-2&amp;paged=$paged");
?&gt;</code></pre><h4>Unique category templates</h4><p>Just name your template file category-ID.php and this will be a specific template for that category e.g. category-2.php</p><h4>Unique category single page</h4><p>In your single.php template do a check to see which category your post is in, then redirect it to another template for that category.</p><pre><code>&lt;?php
	if ( in_category('2') ) {
  include(TEMPLATEPATH . '/single-2.php');
	}else{
	include(TEMPLATEPATH . '/single-all.php');
	}
?&gt;</code></pre><h4>Nice page titles</h4><p>Put the name of the current page followed by a hyphen.</p><pre><code>&lt;?php wp_title(' - ',true,'right');?&gt;Freelance Web Design</code></pre><p>This would return something like &#8220;Portfolio &#8211; Freelance Web Design&#8221;<br
/> <img
class="alignnone size-full wp-image-226" title="picture-8" src="http://www.leemunroe.com/wp-content/uploads/picture-8.png" alt="" /></p><h4>Fancy tags</h4><p>Set up your tags list.</p><pre><code>&lt;?php the_tags('&lt;ul class="tags clearfix"&gt;&lt;li&gt;', '&lt;/li&gt;&lt;li&gt;', '&lt;/li&gt;&lt;/ul&gt;'); ?&gt;</code></pre><p>This produces similar to the following HTML.</p><pre><code>&lt;ul class="tags"&gt;
	&lt;li&gt;&lt;a rel="tag" href="http://www.leemunroe.com/tags/cms/"&gt;CMS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre><p>Then apply some CSS to style them as you like.</p><pre><code>ul.tags{
list-style: none;
margin:0;
}

ul.tags li{
display: inline;
}

ul.tags li{
display:block;
float:left;
padding-left:12px;
background:url(images/tag.gif) left no-repeat;
margin:0 5px 5px 0;
}

ul.tags li a{
display:block;
float:left;
height:22px;
padding:3px 12px 0 0;
background:url(images/tag.gif) right no-repeat;
}</code></pre><p><img
class="alignnone size-full wp-image-234" title="picture-13" src="http://www.leemunroe.com/wp-content/uploads/picture-13.png" alt="" /></p><h4>Customise read more</h4><p>Customise the &#8220;Read more&#8221; link that separates your post. In your index.php where it says:</p><pre><code>&lt;?php the_content(); ?&gt;</code></pre><p>Put the text that you want your link to say between the brackets.</p><pre><code>&lt;?php the_content('Read this article'); ?&gt;</code></pre><p>The more link has a class of &#8216;more-link&#8217; so apply some CSS to style it.</p><pre><code>.more-link{
padding:10px;
background:#3c3028;
font-weight: bold;
float: right;
}</code></pre><p><img
class="alignnone size-full wp-image-237" title="picture-14" src="http://www.leemunroe.com/wp-content/uploads/picture-14.png" alt="" /></p><h4>Highlight author&#8217;s comments</h4><p>Add an .authcomment style.</p><pre><code>.authcomment{
background:#fff;
}</code></pre><p>comments.php has a line like this:</p><pre><code>&lt;li class=”&lt;?php echo $oddcomment; ?&gt;” id=”comment…</code></pre><p>Change it to this:</p><pre><code>&lt;li class=”&lt;?php
/* Only use the authcomment class from style.css if the user_id is 1 (admin) */
if (1 == $comment-&gt;user_id)
$oddcomment = “authcomment”;
echo $oddcomment;
?&gt;” id=”comment…</code></pre><p><img
class="alignnone size-full wp-image-229" title="picture-11" src="http://www.leemunroe.com/wp-content/uploads/picture-11.png" alt="" /><br
/> Thanks to <a
href="http://www.mattcutts.com/blog/highlight-author-comments-wordpress/">Matt Cutts</a> for this hack.</p><h4>Archive dropdown box</h4><p>After a year or more of blogging your archive list can get pretty long so shorten it down with a dropdown box.</p><pre><code>&lt;select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'&gt;
&lt;option value=""&gt;&lt;?php echo attribute_escape(__('Select Month')); ?&gt;&lt;/option&gt;
&lt;?php wp_get_archives('type=monthly&amp;format=option&amp;show_post_count=0'); ?&gt; &lt;/select&gt;</code></pre><p><img
class="alignnone size-full wp-image-230" title="picture-12" src="http://www.leemunroe.com/wp-content/uploads/picture-12.png" alt="" /></p><h4>Further reading</h4><p>Hopefully there&#8217;s a few useful tips in there that will save you having to figure them out for yourself. I recommend checking out the links below for further WordPress theme tips.</p><ul><li><a
href="http://www.webdesignerwall.com/tutorials/wordpress-theme-hacks/">WordPress theme hacks</a></li><li><a
href="http://yoast.com/perfect-wordpress-theme/">10 checks to the perfect WordPress theme</a></li><li><a
href="http://www.graphicdesignblog.co.uk/wordpress-as-a-cms-content-management-system/">WordPress as a CMS</a></li><li><a
href="http://wpcandy.com/articles/tutorials/the-wordpress-help-sheet.html">The WordPress help sheet</a></li></ul></li> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/tips-and-hacks-for-creating-your-own-wordpress-theme/feed/</wfw:commentRss> <slash:comments>19</slash:comments> </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: basic (User agent is rejected)
Database Caching 21/30 queries in 0.680 seconds using disk: basic

Served from: www.leemunroe.com @ 2012-02-11 05:13:24 -->
