<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>WPShout.com</title> <link>http://wpshout.com</link> <description>WordPress Tips, Tricks and Hacks</description> <lastBuildDate>Mon, 09 Nov 2009 12:00:37 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.8.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Nometech" type="application/rss+xml" /><feedburner:emailServiceId>Nometech</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Single Post Templates Made Easy</title><link>http://feedproxy.google.com/~r/Nometech/~3/IbbgCYIZtnM/</link> <comments>http://wpshout.com/single-post-templates-made-easy/#comments</comments> <pubDate>Mon, 09 Nov 2009 12:00:37 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Development Quick Tips]]></category> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://wpshout.com/?p=1602</guid> <description><![CDATA[Create really awesome custom post templates for WordPress with a simple (theme integrate-able) plugin.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/single-post-templates-made-easy/">Single Post Templates Made Easy</a></p> ]]></description> <content:encoded><![CDATA[<p>I had the visual pleasure of reading Ben Gillbanks&#8217; blog, <a
href="http://binarymoon.co.uk">BinaryMoon </a>the other day. Whilst Ben&#8217;s blog is usually looking pretty darn good, using <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as an advanced blogging platform</a>, the other day it looked particularly good. Why? Ben was using unique page templates<a
href="http://www.binarymoon.co.uk/2009/11/coraline-itunes-movie-review/"> for specific blog posts</a>.</p><p><a
href="http://wpshout.com/media/2009/11/normal-vs.jpg"><img
class="alignnone size-full wp-image-1603" title="normal-vs" src="http://wpshout.com/media/2009/11/normal-vs.jpg" alt="normal-vs" width="590" height="300" /></a></p><p>I immediately thought to myself: &#8220;I need to know how to do that.&#8221; So <a
href="http://www.binarymoon.co.uk/2009/11/up-disney-pixar-movie-review/comment-page-1/#comment-22684">I found out</a>. Looks like <a
href="http://prothemedesign.com/themes/elemental/">Elemental </a>is using some rather like Nathan Rice&#8217;s <a
href="http://www.nathanrice.net/plugins/single-post-template/">post template plugin</a> which adds a simple dropdown to the post editor offering different post templates.</p><p><img
class="alignnone" src="http://wpshout.com/wp-content/uploads/images/zxs1tl.png" alt="" width="593" height="141" /></p><p>As themes and plugins start to merge more and more these days, this is yet another example of the merging that&#8217;s taking place &#8211; to integrate post templates into a theme is really easy:- download and unzip the plugin, open the php file and copy and paste into your functions.php file (at the very bottom, after closing php tag; you&#8217;ll want to tidy it up later one you&#8217;ve decided you&#8217;ll keep it). Next, you need to create the page template &#8211; create a duplicate of your single.php file but add the following to the very top of the file:</p><pre><code>&lt;?php
/*
Single Post Template: Template Name
Description: This part is optional, but helpful for describing the Post Template
*/
?&gt;</code></pre><p>Upload it and check out the post editor. With that, you&#8217;re done! You can then get styling to your heart&#8217;s content and create a really unique experience for each post you make to your blog.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/single-post-templates-made-easy/">Single Post Templates Made Easy</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/uunxDdPCvbhk5CNTRdlbSX2J49M/0/da"><img src="http://feedads.g.doubleclick.net/~a/uunxDdPCvbhk5CNTRdlbSX2J49M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uunxDdPCvbhk5CNTRdlbSX2J49M/1/da"><img src="http://feedads.g.doubleclick.net/~a/uunxDdPCvbhk5CNTRdlbSX2J49M/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/IbbgCYIZtnM" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/single-post-templates-made-easy/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://wpshout.com/single-post-templates-made-easy/</feedburner:origLink></item> <item><title>WordPress as a Review Site and Podcasting Site: Advanced Uses of WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/3_nzjCjvKxo/</link> <comments>http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/#comments</comments> <pubDate>Fri, 06 Nov 2009 12:00:02 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Advanced Uses of WordPress]]></category> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://wpshout.com/?p=1584</guid> <description><![CDATA[Create a review and podcasting site with WordPress.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Review Site and Podcasting Site: Advanced Uses of WordPress</a></p> ]]></description> <content:encoded><![CDATA[<div>Continuing [ad], today we&#8217;re going to be looking into using WordPress as review and podcasting site.</div><ol><li>Day 1: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Tumblelog</a></li><li>Day 2: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Review Site and Podcasting Site</a></li><li>Day 3: <a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone</a></li></ol><p>You should never say &#8220;oh, you can&#8217;t do that in WordPress&#8221;. Because you probably can. That&#8217;s the beauty of the platform &#8211; at face value, yes, it is a blogging platform, but be a bit creative and you&#8217;ve got yourself a full blown CMS.</p><h2 style="font-size: 1.5em;">WordPress as a review/podcasting site</h2><p><img
style="border: 0px initial initial;" title="Nometet" src="http://nometech.com/wpshout.com/wp-content/uploads/images/it3xeg.png" alt="" width="590" /></p><p>Above is a picture of <a
href="http://nometet.com">Nometet.com</a>, a games reviews site which also has a sporadically posted podcast. Nometet uses a gallery theme to great effect &#8211; each post has its own image (set through a custom field) which gets auto resized to create a lovely gallery. But where the &#8216;review functionality&#8217; really kicks in is with the <a
href="http://www.channel-ai.com/blog/plugins/star-rating/">star ratings for reviews</a> plugin. Each review has a star rating &#8211; simple enough, but this star rating, along with other bits of data, is sortable through a rather nice <a
href="http://nometet.com/reviews/">jQuery table</a>:</p><p><img
style="border: 0px initial initial;" title="Reviews in WordPress" src="http://nometech.com/wpshout.com/wp-content/uploads/images/cgy4j4.png" alt="" width="510" height="428" /></p><p>As for podcasting, look no further than the excellent <a
href="http://www.mightyseek.com/podpress/">podPress plugin</a>. It offers you a ton of options for iTunes integration, includes a flash player and various other bits and bobs:</p><p><img
style="border: 0px initial initial;" title="Podcasting with WordPress" src="http://nometech.com/wpshout.com/wp-content/uploads/images/14r5uc.png" alt="" width="486" height="66" /></p><h2 style="font-size: 1.5em;">WordPress as a CMS</h2><p>We&#8217;ve been building up to using WordPress as a CMS. With the plugins mentioned above, you can really easily use WordPress for any number of uses. However, using it on a client project as a CMS? Use custom fields to your advantage and you&#8217;ll be fine &#8211; as I&#8217;ve said before, custom fields are what turns WordPress <em>into</em> a CMS &#8211; you can use them to store all sorts of information. Here&#8217;s an example. I want to display the place where an article was written, and if I haven&#8217;t entered that I&#8217;ll just display the date. Using custom fields, that&#8217;s easy:</p><pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><code>&lt;?php
$Place = get_post_custom_values("Place");
if ( is_array($Place) ) { ?&gt;
Plublished in: &lt;?php echo get_post_meta($post-&gt;ID, "Place", true); ?&gt;
&lt;?php }	else { ?&gt;
Published on &lt;?php the_time('n/d/y'); ?&gt;
&lt;?php }	?&gt;</code></pre><p>Just create a custom field &#8216;Place&#8217; and enter the place where the article was written and it&#8217;ll appear. If no custom field exists, then the date the post was published on gets displayed instead.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Review Site and Podcasting Site: Advanced Uses of WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/MBOB2nfu4s0yedHTAm4bzOz_nmc/0/da"><img src="http://feedads.g.doubleclick.net/~a/MBOB2nfu4s0yedHTAm4bzOz_nmc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MBOB2nfu4s0yedHTAm4bzOz_nmc/1/da"><img src="http://feedads.g.doubleclick.net/~a/MBOB2nfu4s0yedHTAm4bzOz_nmc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/3_nzjCjvKxo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/</feedburner:origLink></item> <item><title>WordPress as a Social Network and Twitter clone: Advanced Uses of WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/UnyKTYTWyEg/</link> <comments>http://wpshout.com/wordpress-as-a-social-network-and-twitter-clone-advanced-uses-of-wordpress/#comments</comments> <pubDate>Wed, 04 Nov 2009 17:00:05 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Advanced Uses of WordPress]]></category> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://wpshout.com/?p=1241</guid> <description><![CDATA[Using WordPress as a social network and Twitter clone has just got a heck of a lot easier! Day three of Advanced Uses of WordPress looks at just that.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/wordpress-as-a-social-network-and-twitter-clone-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone: Advanced Uses of WordPress</a></p> ]]></description> <content:encoded><![CDATA[<div>Day three of [ad] continues, with a look at WordPress as a social network and Twitter site.<a
href="http://wpshout.com/media/2009/10/ad-wp-day-2.jpg"><img
class="size-full wp-image-1230 alignright" title="ad-wp-day-2" src="http://wpshout.com/media/2009/10/ad-wp-day-2.jpg" alt="ad-wp-day-2" /></a></div><ol><li>Day 1: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Tumblelog</a></li><li>Day 2: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Review Site and Podcasting Site</a></li><li>Day 3: <a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone</a></li></ol><p>As I mentioned the other day,  the multi-user version of WordPress is called <a
href="http://mu.wordpress.org/">WordPressMU</a>. <a
href="http://wpshout.com/getting-started-with-wpmu-and-buddypress-part-1-installing-wpmu/">Installing WPMU</a> is something I&#8217;ve covered before here on <a
href="http://wpshout.com">WPShout</a>, so check that out for details how to install it. With WordPress MU installed, there&#8217;s an excellent plugin you can add called BuddyPress. Again, I&#8217;ve written about <a
href="http://wpshout.com/getting-started-with-wpmu-and-buddypress-part-2-installing-buddypress/">how to install BuddyPress</a> and <a
href="http://wpshout.com/getting-started-with-wpmu-and-buddypress-part-3-getting-to-grips-with-buddypress/">get to grips with it</a> before, so check out <a
href="http://wpshout.com/category/development/wordpress-mu/">those tutuorials</a>.</p><p>Whilst we&#8217;re not <em>strictly</em> using WordPress here, it&#8217;s close enough, and the possibilities for expansion are huge &#8211; just take a look at the <a
href="http://www.telegraph.co.uk/comment/blogs/">Telegraph&#8217;s blogs</a> &#8211; all run on WordPress MU.</p><pre><code>&lt;meta name="generator" content="WordPress 2.7.1" /&gt; </code></pre><p>Interestingly, though, they&#8217;re only running 2.7.1!</p><h2>Making a Twitter clone with WordPress</h2><p><a
href="http://nometech.com/wpshout.com/wp-content/uploads/images/25zjh7.png"><img
class="alignnone" title="P2" src="http://nometech.com/wpshout.com/wp-content/uploads/images/25zjh7.png" alt="" width="590" /></a></p><p>Twitter clones are all the range these days, and, thankfully, there&#8217;s a WordPress theme that does the job of Twitter clone. <a
href="http://wordpress.org/extend/themes/p2">Prologue</a>, or P2, allows you to make your own Twitter clone on <em>any</em> WordPress install &#8211; just set up a new install of WordPress, click &#8216;Add New Themes&#8217;, do a search for P2, install it and activate it. And you&#8217;re done.</p><p>With P2 installed, the subscribe to comments plugin is pretty darn useful and you might want to restrict access to only those who are logged in.</p><h2>Concluding</h2><p>Just a (comparatively) quick post today and not a mention of custom fields! It would have been longer, but it occurred to me halfway through writing the post that I&#8217;d already written what I wanted to say! Join us tomorrow to find out how to use WordPress as a review site.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/wordpress-as-a-social-network-and-twitter-clone-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone: Advanced Uses of WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/n9t9DrwFN0eZqXUHaEMQg2Xbavg/0/da"><img src="http://feedads.g.doubleclick.net/~a/n9t9DrwFN0eZqXUHaEMQg2Xbavg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/n9t9DrwFN0eZqXUHaEMQg2Xbavg/1/da"><img src="http://feedads.g.doubleclick.net/~a/n9t9DrwFN0eZqXUHaEMQg2Xbavg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/UnyKTYTWyEg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/wordpress-as-a-social-network-and-twitter-clone-advanced-uses-of-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://wpshout.com/wordpress-as-a-social-network-and-twitter-clone-advanced-uses-of-wordpress/</feedburner:origLink></item> <item><title>WordPress as a Tumblelog, CMS: Advanced Uses of WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/r30_tu3dBXA/</link> <comments>http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/#comments</comments> <pubDate>Tue, 03 Nov 2009 17:00:21 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Advanced Uses of WordPress]]></category><guid isPermaLink="false">http://wpshout.com/?p=1223</guid> <description><![CDATA[Day one of "Advanced Uses of WordPress" looks at using WordPress to create a Tumblelog using custom fields.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Tumblelog, CMS: Advanced Uses of WordPress</a></p> ]]></description> <content:encoded><![CDATA[<div>Kicking off this month&#8217;s series [ad], today we&#8217;ll be looking at WordPress as an advanced blogging platform <em>and</em> a Tumblelog.</div><div></div><div><a
href="http://wpshout.com/media/2009/11/ad-wp-day-2.jpg"><img
class="size-full wp-image-1598 alignright" title="ad-wp-day-2" src="http://wpshout.com/media/2009/11/ad-wp-day-2.jpg" alt="ad-wp-day-2" width="250" height="250" /></a></div><ol><li>Day 1: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Tumblelog</a></li><li>Day 2: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Review Site and Podcasting Site</a></li><li>Day 3: <a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone</a></li></ol><p>You should never say &#8220;oh, you can&#8217;t do that in WordPress&#8221;. Because you probably can. That&#8217;s the beauty of the platform &#8211; at face value, yes, it is a blogging platform, but be a bit creative and you&#8217;ve got yourself a full blown CMS.</p><h2>WordPress as an advanced blogging platform</h2><p><a
href="http://nometech.com/wpshout.com/wp-content/uploads/images/g6xzmi.png"><img
class="alignnone" title="WordPress as a CMS" src="http://nometech.com/wpshout.com/wp-content/uploads/images/g6xzmi.png" alt="" width="590" /></a></p><p>The image above is a screen of BinaryMoon.co.uk, Ben Gillbanks&#8217; blog. It&#8217;s powered by WordPress and look at it! Popular posts on a scrolling, jQuerified block, recent posts from various categories down the sidebar, with one post <em>only</em> having an excerpt. It&#8217;s a brilliant example of how you can use WordPress as an <em>advanced</em> blogging platform; a good knowledge of the <a
href="http://wpshout.com/wordpress-template-file-hierarchy-explained/">template hierarchy</a>, the <a
href="http://wpshout.com/a-beginners-guide-to-wordpress-theme-development/">basics of WordPress development</a> and some design skills and you&#8217;re effectively there. Sites such as Ben&#8217;s prove just how versatile WordPress is as a blogging platform. Speaking of which&#8230;</p><h2>WordPress as a Tumblelog</h2><p><a
href="http://nometech.com/wpshout.com/wp-content/uploads/images/av3svp.png"><img
class="alignnone" title="Tumblelog in WordPress" src="http://nometech.com/wpshout.com/wp-content/uploads/images/av3svp.png" alt="" width="590" /></a></p><p>Microblogging is yet another thing that WordPress is brilliantly suited to. To prove the point, I&#8217;ve just very quickly created a <a
href="http://wpshout.com/free-wordpress-magazineframeworkbloggytech-blog-theme-biblioteca/">Biblioteca</a> child theme which acts as a Tumblelog: using custom fields and custom write panels I&#8217;ve been able to set up a homepage where the latest posts get displayed, in Tumblelog form. However, there&#8217;s a bonus &#8211; again, using  just custom fields, you can post links! It&#8217;s all very clever &#8211; the image above is the actual theme &#8211; I just took <a
href="http://wpshout.com/free-wordpress-magazineframeworkbloggytech-blog-theme-biblioteca/">Biblioteca</a>, created a child theme of it, got rid of the sidebar and made it single column and I was left with a decent Tumble-like design. Taking it further though, the first post &#8211; WPShout &#8211; is actually a link to <a
href="http://wpshout.com">WPShout</a>. How? Using <a
href="http://wpshout.com/free-wordpress-magazineframeworkbloggytech-blog-theme-biblioteca/">Biblioteca</a>&#8217;s<a
href="http://wpshout.com/create-an-in-post-theme-options-meta-box-in-wordpress/"> custom write meta box thingys</a> (I still don&#8217;t know the technical term!) I can create a new post which contains the link and then under &#8216;title&#8217; type in the link URL:</p><p><a
href="http://nometech.com/wpshout.com/wp-content/uploads/images/qj56sz.png"><img
class="alignnone" title="Custom write panels" src="http://nometech.com/wpshout.com/wp-content/uploads/images/qj56sz.png" alt="" width="498" height="181" /></a></p><p>And to integrate that onto the homepage, I can use the following:</p><pre><code>&lt;?php
$Post = get_post_custom_values("Title");
if ( is_array($Post) ) { ?&gt;
&lt;h2 class="posttitle"&gt;&lt;?php echo get_post_meta($post-&gt;ID, "Title", true); ?&gt;&lt;/h2&gt;
&lt;?php }	else { ?&gt;
&lt;h2 class="posttitle"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title();?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;?php }	?&gt;</code></pre><p>The clever bit here is that for normal blog posts, just leave the field blank and the title gets displayed. It&#8217;s really easy to create something like this so go on! Do it!</p><h2>Concluding</h2><p>Throughout this week I&#8217;m going to bang on about custom fields, which I make no apology for; they&#8217;re a brilliant way of storing extra information about posts and you can&#8217;t ignore them! Join us on Wednesday to find out how to use WordPress as a social network with Twitter-like functionality.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Tumblelog, CMS: Advanced Uses of WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/UpPCcZV2L1j7AvTkNgCi-hgzFyU/0/da"><img src="http://feedads.g.doubleclick.net/~a/UpPCcZV2L1j7AvTkNgCi-hgzFyU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UpPCcZV2L1j7AvTkNgCi-hgzFyU/1/da"><img src="http://feedads.g.doubleclick.net/~a/UpPCcZV2L1j7AvTkNgCi-hgzFyU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/r30_tu3dBXA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/feed/</wfw:commentRss> <slash:comments>5</slash:comments> <feedburner:origLink>http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/</feedburner:origLink></item> <item><title>Advanced Uses of WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/eyZwppYx_Fw/</link> <comments>http://wpshout.com/advanced-uses-of-wordpress/#comments</comments> <pubDate>Mon, 02 Nov 2009 17:00:50 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Advanced Uses of WordPress]]></category> <category><![CDATA[Featured]]></category><guid isPermaLink="false">http://wpshout.com/?p=1213</guid> <description><![CDATA[WordPress as a CMS, social network, Twitter site, eCommerce and gallery? WPShout runs through how to achieve all of those with "Advanced Uses of WordPress" week.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress/">Advanced Uses of WordPress</a></p> ]]></description> <content:encoded><![CDATA[<p><a
href="http://wpshout.com/wp-content/uploads/2009/08/ad-wp-day-1.jpg"><img
class="alignright size-full wp-image-1217" title="ad-wp-day-1" src="http://wpshout.com/wp-content/uploads/2009/08/ad-wp-day-1.jpg" alt="ad-wp-day-1" width="250" height="250" /></a></p><p>This is the third of <a
href="http://wpshout.com">WPShout</a>&#8217;s themed weeks, this time with the foucs being on advanced uses of WordPress. Whilst WordPress is traditionally a blogging platform, that is certainly not the only use for it. Throughout this week we&#8217;re going to be looking at [ad], with the table of contents as follows:</p><ol><li><strong>Day 1: </strong><a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/"><strong>WordPress as a Tumblelog</strong></a></li><li>Day 2: <a
href="http://wpshout.com/advanced-uses-of-wordpress-cms-tumblelogs-reviews-and-podcasting/">WordPress as a Review Site and Podcasting Site</a></li><li>Day 3: <a
href="http://wpshout.com/wordpress-as-a-review-site-and-podcasting-site-advanced-uses-of-wordpress/">WordPress as a Social Network and Twitter clone</a></li></ol><p>(if the links don&#8217;t work, that means coming soon!)</p><h2>The introductory bit</h2><p>WordPress is a great blogging platform. A simple, easy to use backend and scope for development with plugins and themes. WordPress is also a brilliant CMS. More and more, WordPress is being used for all kinds of different sites; the power of <a
href="http://wpshout.com/category/themes/">WordPress themes</a> and frameworks, such as <a
href="http://wpshout.com/free-wordpress-magazineframeworkbloggytech-blog-theme-biblioteca/">Biblioteca</a>, make WordPress a really powerful CMS. You&#8217;ve just got the think outside the box. You want to make a site with a large featured post, explaining about a product, with links to buy the product and recent blog posts on the sidebar? Easy. In WordPress you could use widgets, create a category for the featured product and display the post with the info on it. You could use custom fields, harcode it with a custom page template&#8230; the options are endless. That&#8217;s the point I&#8217;m going to attempt to convey this week; you want to do <em>literally anything</em>? WordPress can do it for you.</p><h2>Advanced Uses of WordPress&#8217; Reading List</h2><p>There are a couple of posts here on <a
href="http://wpshout.com">WPShout</a> that you should read before delving into the series to give you a solid understanding of all the jargon I&#8217;m using and all the options available to you:</p><ul><li><a
href="http://wpshout.com/category/themes/a-beginners-guide-to-wordpress-theme-development-themes/
">"A Beginner Guide To WordPress Theme Development"</a></li><li><a
href="http://wpshout.com/10-awesome-things-to-do-with-wordpress-custom-fields/">10 Awesome Things to do with WordPress&#8217; Custom Fields</a></li><li><a
href="http://wpshout.com/create-the-perfect-widget-ready-wordpress-theme/">Creating the perfect widget ready WordPress theme</a></li><li><a
style="text-decoration: none;" href="http://wpshout.com/wordpress-template-file-hierarchy-explained/">WordPress&#8217; Template File Hierarchy Explained</a></li></ul><p>With those posts read and understood, you&#8217;ll be in pretty good shape for the rest of the week&#8217;s post. Make sure you <a
href="http://feeds2.feedburner.com/nometech">subscribe by RSS</a> to catch the full week&#8217;s postings.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress/">Advanced Uses of WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/c9Coi2ekGXgc425jMhdPnsbNLpw/0/da"><img src="http://feedads.g.doubleclick.net/~a/c9Coi2ekGXgc425jMhdPnsbNLpw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/c9Coi2ekGXgc425jMhdPnsbNLpw/1/da"><img src="http://feedads.g.doubleclick.net/~a/c9Coi2ekGXgc425jMhdPnsbNLpw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/eyZwppYx_Fw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/advanced-uses-of-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://wpshout.com/advanced-uses-of-wordpress/</feedburner:origLink></item> <item><title>Advanced Uses of WordPress – Coming Next Week</title><link>http://feedproxy.google.com/~r/Nometech/~3/DBu1A1oTRfU/</link> <comments>http://wpshout.com/advanced-uses-of-wordpress-coming-next-week/#comments</comments> <pubDate>Fri, 30 Oct 2009 17:39:30 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://wpshout.com/?p=1579</guid> <description><![CDATA[Advanced uses of WordPress is coming up next week on WPShout.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress-coming-next-week/">Advanced Uses of WordPress &#8211; Coming Next Week</a></p> ]]></description> <content:encoded><![CDATA[<p>For the past two months on <a
href="http://wpshout.com">WPShout</a> at the start of the month have been &#8216;themed weeks&#8217;. In these themed weeks we&#8217;ve first looked at &#8220;<a
href="http://wpshout.com/a-beginners-guide-to-wordpress-theme-development-day-6-free-ebook/">A Beginner&#8217;s Guide to WordPress Theme Development</a>&#8221; and then &#8220;<a
href="http://wpshout.com/create-an-advanced-options-page-in-wordpress/">Creating an Advanced Theme Options Page</a>&#8220;. Next week something a bit different &#8211; a three part series in which we&#8217;ll look at various advanced uses of WordPress such as using WordPress as a Tumbelog, CMS and review site. Before the series gets underway, there are a couple of posts that should be read so you get the most out of the series:</p><h2 style="font-size: 1.5em;">Advanced Uses of WordPress&#8217; Reading List</h2><ul><li><a
href="http://wpshout.com/category/themes/a-beginners-guide-to-wordpress-theme-development-themes/
">"A Beginner Guide To WordPress Theme Development"</a></li><li><a
href="http://wpshout.com/10-awesome-things-to-do-with-wordpress-custom-fields/">10 Awesome Things to do with WordPress&#8217; Custom Fields</a></li><li><a
href="http://wpshout.com/create-the-perfect-widget-ready-wordpress-theme/">Creating the perfect widget ready WordPress theme</a></li><li><a
style="text-decoration: none;" href="http://wpshout.com/wordpress-template-file-hierarchy-explained/">WordPress&#8217; Template File Hierarchy Explained</a></li></ul><h2 style="font-size: 1.5em;">The introductory bit</h2><p>WordPress is a great blogging platform. A simple, easy to use backend and scope for development with plugins and themes. WordPress is also a brilliant CMS. More and more, WordPress is being used for all kinds of different sites; the power of <a
href="http://wpshout.com/category/themes/">WordPress themes</a> and frameworks, such as <a
href="http://wpshout.com/free-wordpress-magazineframeworkbloggytech-blog-theme-biblioteca/">Biblioteca</a>, make WordPress a really powerful CMS. You&#8217;ve just got the think outside the box. You want to make a site with a large featured post, explaining about a product, with links to buy the product and recent blog posts on the sidebar? Easy. In WordPress you could use widgets, create a category for the featured product and display the post with the info on it. You could use custom fields, harcode it with a custom page template&#8230; the options are endless. That&#8217;s the point I&#8217;m going to attempt to convey this week; you want to do <em
style="font-style: italic;">literally anything</em>? WordPress can do it for you.</p><p>So that&#8217;s all coming up next week. In the meantime, some slightly not so good news &#8211; for the past three months or so there have been three posts a week. As those of you who[f] will know, I&#8217;m working on something secret (for the moment at least) which is taking up a fair bit of time. For that reason, for the next month (and starting this time next week) or so there are only going to be two posts a week. I&#8217;ll enlighten everyone on this secret thing soon and you&#8217;ll also soon have a chance to voice opinions on the site. In the meantime, if you&#8217;re missing out on a tri-weekly bout of WordPress goodness, hop out of that RSS reader to <a
href="http://wpshout.com">WPShout</a> and have a flick through the category archives. There&#8217;s something for all abilities there!</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/advanced-uses-of-wordpress-coming-next-week/">Advanced Uses of WordPress &#8211; Coming Next Week</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/g6vr_tZgLQW-124aUnKWh288DSM/0/da"><img src="http://feedads.g.doubleclick.net/~a/g6vr_tZgLQW-124aUnKWh288DSM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/g6vr_tZgLQW-124aUnKWh288DSM/1/da"><img src="http://feedads.g.doubleclick.net/~a/g6vr_tZgLQW-124aUnKWh288DSM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/DBu1A1oTRfU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/advanced-uses-of-wordpress-coming-next-week/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://wpshout.com/advanced-uses-of-wordpress-coming-next-week/</feedburner:origLink></item> <item><title>Write Faster With WordPress’ Shortcodes</title><link>http://feedproxy.google.com/~r/Nometech/~3/5N38Pv6vqzw/</link> <comments>http://wpshout.com/write-faster-with-wordpress-shortcodes/#comments</comments> <pubDate>Wed, 28 Oct 2009 15:00:05 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Other]]></category> <category><![CDATA[Shortcodes]]></category><guid isPermaLink="false">http://wpshout.com/?p=1573</guid> <description><![CDATA[WordPress has many somewhat hidden features and these is shortcodes. In this post we'll learn exactly what shortcodes are, when to use them, why they're so brilliant and how to use them.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/write-faster-with-wordpress-shortcodes/">Write Faster With WordPress&#8217; Shortcodes</a></p> ]]></description> <content:encoded><![CDATA[<p>WordPress has many somewhat hidden features and one of my favourites are shortcodes. In this post we&#8217;ll learn exactly <em>what</em> they are, <em>when</em> to use them, <em>why</em> they&#8217;re so brilliant and <em>how</em> to use them.</p><h2>Shortcodes. What are they?</h2><p>In a nutshell, shortcodes are shortcuts of writing phrases or words. Here&#8217;s an example. On <a
href="http://wpshout.com">WPShout</a> whenever I write <a
href="http://wpshout.com">WPShout</a> it always links to the homepage. That&#8217;s because I&#8217;ve set up a shortcode so all I have to do is type <code><a
href="http://wpshout.com">WPShout</a></code> and WordPress outputs &lt;<code>a href="http://wpshout.com"&gt;WPShout&lt;/a&gt;</code>.</p><p>Another example &#8211; if I type <code><a
href="http://wpshout.com/category/themes/">WordPress themes</a></code> WordPress outputs <code>&lt;a href="http://wpshout.com/category/themes/"&gt;WordPress Themes&lt;/a&gt;</code>. This allows me to quickly cross promote other sections of the site and link to other pages with minimal effort on my part. I do use them quite a lot &#8211; why not [f] or <a
href="http://feeds2.feedburner.com/nometech">subscribe by RSS</a>? All I&#8217;m typing is <code>[f]</code> and <code><a
href="http://feeds2.feedburner.com/nometech">subscribe by RSS</a></code>.</p><h2>So how do I use them?</h2><p>Now that you&#8217;re convinced shortcodes are the best thing since sliced bread, you&#8217;ll obviously want to know how to use these shortcodes. It&#8217;s really easy. First, you&#8217;ll need the functions.php file open. We&#8217;ll come back to that in a sec &#8211; first lets look at the <code><a
href="http://wpshout.com">WPShout</a></code> example I showed earlier. In my functions.php file I&#8217;ve got the following:</p><pre><code>function wpshout() {
    return '&lt;a href="http://wpshout.com"&gt;WPShout&lt;/a&gt;';
}
add_shortcode('wp', 'wpshout');</code></pre><p>Which as we&#8217;ve seen outputs a link to WPShout.com. The important thing to learn from the example is the formatting: start off with a function, then return what we want to be displayed and then add the shortcode. The first needs to be what you want to shorten to and the second the same as the function. Another example &#8211; I want WordPress to output &#8216;cheese&#8217; when I type <code><a
href="http://wpshout.com/create-an-advanced-options-page-in-wordpress/">Creating an Advanced Theme Options Page in WordPress</a></code>. Using the same formatting as the last example, you&#8217;d have:</p><pre><code>function cheese() {
    return 'cheese';
}
add_shortcode('c', 'cheese');</code></pre><h2>So when should I use them?</h2><p>All the time actually. They save an awful lot of time for useful little things. Enjoy!</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/write-faster-with-wordpress-shortcodes/">Write Faster With WordPress&#8217; Shortcodes</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/Edyw9SkIseCI8NwniOuZFQagNho/0/da"><img src="http://feedads.g.doubleclick.net/~a/Edyw9SkIseCI8NwniOuZFQagNho/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Edyw9SkIseCI8NwniOuZFQagNho/1/da"><img src="http://feedads.g.doubleclick.net/~a/Edyw9SkIseCI8NwniOuZFQagNho/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/5N38Pv6vqzw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/write-faster-with-wordpress-shortcodes/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://wpshout.com/write-faster-with-wordpress-shortcodes/</feedburner:origLink></item> <item><title>9 Ways to Create a Crash Proof WordPress Site</title><link>http://feedproxy.google.com/~r/Nometech/~3/Ki8fdlnr2nI/</link> <comments>http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/#comments</comments> <pubDate>Mon, 26 Oct 2009 13:00:34 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Theme Development]]></category><guid isPermaLink="false">http://wpshout.com/?p=1443</guid> <description><![CDATA[Your site never need go down again with nine ways to create a crash proof and speedy WordPress site or blog.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/">9 Ways to Create a Crash Proof WordPress Site</a></p> ]]></description> <content:encoded><![CDATA[<p>As your blog starts to grow, inevitably you&#8217;ll get one big spike of traffic and your site will go down. Rubbish. This post has nine ways to combat that and create a &#8216;crash proof&#8217; WordPress blog.</p><p><a
href="http://wpshout.com/wp-content/uploads/2009/10/crash-proof-large.jpg"><img
class="size-full wp-image-1459 alignnone" title="crash-proof-large" src="http://wpshout.com/wp-content/uploads/2009/10/crash-proof-large.jpg" alt="crash-proof-large" width="590" height="320" /></a></p><h2>1. W3 Total Cache</h2><p>Used here on <a
href="http://wpshout.com">WPShout</a>:</p><blockquote><p>Trusted by many popular blogs like: mashable.com, pearsonified.com, webdesignerdepot.com, freelanceswitch.com, briansolis.com, css3.info, tutsplus.com, yoast.com, noupe.com and others — W3 Total Cache improves the user experience of your blog by caching every aspect of your site, reducing the download time of your theme and providing transparent content delivery network (CDN) integration.</p></blockquote><p>It&#8217;s a great caching platform that creates static versions of your pages. And a heck of a lot more!</p><p><a
href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a></p><h2>2. WP Super Cache</h2><p>The caching plugin that <em>everyone </em>uses (at least until W3 Total Cache came along!). I&#8217;m no expert, but W3 Total Cache and WP Super Cache are pretty similar &#8211; they&#8217;re both caching plugins. However, to me at least, it looks as though Total Cache is a tad more superior with a couple of additional features. That said, they&#8217;re both excellent plugins and the only way to pick between them is to try them both out! So do that!</p><blockquote><p>A classic method of preparing an under powered site for a Digg front page appearance or a Slashdotting has been to manually save copies of dynamically generated pages, and place them in directories that match the permalinks structure. This method of performance enhancement does help servers handle a higher load without crashing, but is only effective when an oncoming rush of traffic can be anticipated. WP-Cache alone, while helpful, is not adequate in many cases, so WP Super Cache was created to effectively mimic the manual page caching method, but to handle it in an automated fashion.</p></blockquote><p>Just to prove it works, check out <a
href="http://epicalex.com/">EpicAlex.com</a> &#8211; it&#8217;s using a standard layout of featured post and then recent posts below. With Super Cache turned on, it&#8217;s loading just over a second!</p><p><a
href="http://ocaoimh.ie/wp-super-cache/">WP Super Cache</a></p><h2>3. Caching with .htaccess!</h2><p>As <a
href="http://wpshout.com/10-ways-to-use-htaccess-to-speed-up-wordpress/">I wrote a while ago</a>, it&#8217;s really easy to cache your files with the .htaccess file &#8211; the following code can just be plopped into your .htaccess file:</p><pre><code># BEGIN Expire headers
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/x-icon "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
  ExpiresByType text/html "access plus 600 seconds"
  ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers</code></pre><p><a
href="http://wpshout.com/10-ways-to-use-htaccess-to-speed-up-wordpress/">Source</a>.</p><h2>4. Reduce database queries</h2><p>This is a killer one. Reducing the number of database queries your theme is making can be the difference between your site staying up and going down! You can easily check how many queries your theme is using with the following:</p><pre><code>&lt;?php if (is_user_logged_in()) { ?&gt;
    &lt;?php echo get_num_queries(); ?&gt; queries in &lt;?php timer_stop(1); ?&gt; seconds.
&lt;?php } ?&gt;</code></pre><p>Counters are great for reducing your queries &#8211; look at <a
href="http://www.binarymoon.co.uk/">Binary Moon</a>&#8217;s sidebar to see an example of how counters can be used to pull a load of data in a single loop.</p><p>It&#8217;s all very easy seeing how many database queries you&#8217;re making, but reducing them? That&#8217;s the interesting bit. The culprit can often be plugins &#8211; the <a
href="http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/">YARPP </a>plugin makes a heck of a lot of queries (often 10+!) and whilst it&#8217;s <a
href="http://epicalex.com/yarpp-templates/">incredibly customisable</a>, it could well be slowing down your site a heck of a lot. Just bear that in mind.</p><p>The next thing on the list is custom fields. <a
href="http://wpshout.com">WPShout</a> is using custom fields on the homepage in order to grab a featured image. Getting rid of those images took the count down three queries so that&#8217;s something to bear in mind when creating a <a
href="http://wpshout.com/10-ways-to-get-that-elusive-magazine-look-in-wordpress/">magazine theme</a>.</p><p><img
class="alignnone" title="Five queries!" src="http://nometech.com/wpshout.com/wp-content/uploads/images/no1wil.png" alt="" width="591" height="271" /></p><p>Custom loops are a massive culprit too with even the simple downloads section on <a
href="http://wpshout.com">WPShout</a> using five queries! With something like that with relatively static content, it can be an idea to comment out the query and replace with the static code generated (ie copying and pasting from the source code).</p><h2>5. Utilise your .htaccess file</h2><p><img
class="alignnone" title="htaccess WordPress" src="http://wpshout.com/wp-content/uploads/2009/08/increase-speed.jpg" alt="" width="590" height="320" /></p><p>We&#8217;ve already touched on .htaccess in this article, but there is a heck of a lot more you can do with it &#8211; check out &#8220;<a
href="http://wpshout.com/10-ways-to-use-htaccess-to-speed-up-wordpress/">10 Ways to Use .htaccess to Speed Up WordPress</a>&#8221; for more tips &#8211; you can easily cache, gzip, stop hotlinking, the lot!</p><h2>6. Take the load off your server</h2><p>An interesting one this that I&#8217;ve been experimenting a bit with recently. The idea? Use a service such as Amazon S3 to host your images, CSS and JS, making your site load quicker and taking some of the load off your server. As this screencast shows, there are immediately benefits:</p><p><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="345" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="flashvars" value="i=15756" /><param
name="allowFullScreen" value="true" /><param
name="src" value="http://screenr.com/Content/assets/screenr_0817090731.swf" /><param
name="allowfullscreen" value="true" /><embed
type="application/x-shockwave-flash" width="560" height="345" src="http://screenr.com/Content/assets/screenr_0817090731.swf" allowfullscreen="true" flashvars="i=15756"></embed></object></p><p>In practice, <em>using</em> Amazon S3 day to day is a little more challenging. However, with a plugin such as <a
href="http://wordpress.org/extend/plugins/tantan-s3/">&#8220;Amazon S3 for WordPress</a>&#8221; it&#8217;s <em>fairly</em> easy to use S3 to host all of your media files.</p><h2>7. Clean up that database!</h2><p><img
class="alignnone" title="Optimise WordPress" src="http://wpshout.com/wp-content/uploads/2009/05/optimise.jpg" alt="" width="590" /></p><p>As I explain in <a
href="http://wpshout.com/optimise-your-wordpress-installation/">this post</a>, it&#8217;s very easy to optimise your database &#8211; login to cPanel and then load up phpMyAdmin. Next, select the database WordPress is installed on and then &#8216;Check all&#8217; checkboxes. Then on the dropdown at the bottom of the page click &#8216;Optimize table&#8217; and you&#8217;re done!</p><h2>8. Get a decent host!</h2><p><img
class="alignnone" title="a" src="http://nometech.com/wpshout.com/wp-content/uploads/images/vhq9d4.png" alt="" width="501" height="302" /></p><p>This one&#8217;s uber important. Without a good host, a spike of traffic will see your site plummet out of the interweb. A decent host should be an <em>integral</em> part of your blog&#8217;s strategy. Yes, they will cost more, but you&#8217;ll not regret it when your site gets popular on Twitter and the site remains up. <a
href="http://wpshout.com">WPShout</a> is with <a
href="http://bit.ly/15zdf7">WPWebHost</a> and I&#8217;m pleased to say the past couple of months they&#8217;ve been brilliant after some initial problems. They&#8217;re definitely a host to check out with some generous plans. For measuring the uptime of your site, look no further than the wonderful <a
href="http://aremysitesup.com/aff/guavjU">AreMySites </a>to notify you of when your site goes down.</p><h2>9. Your thoughts</h2><p>I haven&#8217;t done this for a while, so here goes. Why not suggest <em>your</em> way of optimising your <a
href="http://wpshout.com/category/themes/">theme</a>. Leave a comment below (RSS readers jump to the comment form <a
href="http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/#commentform">here</a>)!</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/">9 Ways to Create a Crash Proof WordPress Site</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/n3hEeA2qYCXzivSwUATPSy8ebC0/0/da"><img src="http://feedads.g.doubleclick.net/~a/n3hEeA2qYCXzivSwUATPSy8ebC0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/n3hEeA2qYCXzivSwUATPSy8ebC0/1/da"><img src="http://feedads.g.doubleclick.net/~a/n3hEeA2qYCXzivSwUATPSy8ebC0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/Ki8fdlnr2nI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/feed/</wfw:commentRss> <slash:comments>8</slash:comments> <feedburner:origLink>http://wpshout.com/10-ways-to-create-a-crash-proof-wordpress-site/</feedburner:origLink></item> <item><title>Using Bloginfo Effectively in WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/e-UqWZzskJw/</link> <comments>http://wpshout.com/using-bloginfo-effectively-in-wordpress/#comments</comments> <pubDate>Fri, 23 Oct 2009 11:00:19 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Theme Development]]></category> <category><![CDATA[Bloginfo]]></category> <category><![CDATA[Template Tag]]></category><guid isPermaLink="false">http://wpshout.com/?p=1548</guid> <description><![CDATA[Learn how to use the powerful template tag bloginfo effectively in WordPress with this detailed explanation.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/using-bloginfo-effectively-in-wordpress/">Using Bloginfo Effectively in WordPress</a></p> ]]></description> <content:encoded><![CDATA[<p>One of the most useful template tags you&#8217;ll use in WordPress is <code>bloginfo</code>. As the name suggests, it lets you dynamically show information about your blog. That&#8217;s the important bit. <em>Your</em> blog. So when you&#8217;re designing a <a
href="http://wpshout.com/category/themes/">theme</a> for public release, you can accommodate for all sort of different situations.</p><h2>So what can I use <code>bloginfo </code>for?</h2><p>All sorts of different things. Here&#8217;s the complete list, courtesy of <a
href="http://codex.wordpress.org/Template_Tags/bloginfo">the codex</a>. It doesn&#8217;t make too much sense on it&#8217;s own if you don&#8217;t <em>already</em> know what you&#8217;re doing, so I&#8217;ve added in a little explanation below each.</p><pre><code>admin_email = admin@example</code></pre><p>Email of the administrator.</p><pre><code>atom_url = http://example/home/feed/atom
</code></pre><p>Atom feed URL</p><pre><code>charset = UTF-8
</code></pre><p>The character ecoding system (not particularily interesting &#8211; used in the ).</p><pre><code>comments_atom_url = http://example/home/comments/feed/atom
</code></pre><p>Atom feed for all comments on the blog.</p><pre><code>comments_rss2_url = http://example/home/comments/feed
</code></pre><p>RSS feed for all comments on the blog.</p><pre><code>description = Just another WordPress blog
</code></pre><p>The description (or tagline) of your blog, as set under &#8216;Settings&#8217; in the backend.</p><pre><code>url = http://example/home
</code></pre><p>Homepage of the blog.</p><pre><code>html_type = text/html
</code></pre><p>Type of HTML used (again, not too interesting <img
src='http://wpshout.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ).</p><pre><code>language = en-GB
</code></pre><p>Language used on the blog.</p><pre><code>name = Testpilot
</code></pre><p>Name or title of your blog, as set under &#8216;Settings&#8217; in the backend.</p><pre><code>pingback_url = http://example/home/wp/xmlrpc.php
</code></pre><p>URL to which pingbacks should be sent.</p><pre><code>rdf_url = http://example/home/feed/rdf
</code></pre><blockquote><p>a general method for conceptual description or modeling of information that is implemented in web resources; using a variety of syntax formats.</p></blockquote><p>via <a
href="http://en.wikipedia.org/wiki/Resource_Description_Framework">Wikipedia<br
/> </a></p><pre><code>rss2_url = http://example/home/feed
</code></pre><p>RSS feed for the blog.</p><pre><code>rss_url = http://example/home/feed/rss
</code></pre><p>URL of the RSS feed.</p><pre><code>siteurl = http://example/home
</code></pre><p>URL of the site.</p><pre><code>stylesheet_directory = http://example/home/wp/wp-content/themes/largo
</code></pre><p>Directory where the style.css file is located.</p><pre><code>stylesheet_url = http://example/home/wp/wp-content/themes/largo/style.css
</code></pre><p>URL of the stylesheet.</p><pre><code>template_directory = http://example/home/wp/wp-content/themes/largo
</code></pre><p>Directory of your theme.</p><pre><code>template_url = http://example/home/wp/wp-content/themes/largo
</code></pre><p>URL of the theme.</p><pre><code>text_direction = ltr
</code></pre><p>Direction in which the text reads (ie left to right).</p><pre><code>version = 2.8.5
</code></pre><p>Version of WordPress the blog is running.</p><pre><code>wpurl = http://example/home/wp
</code></pre><p>URL of the WordPress installation (sometimes different to where the homepage is).</p><h2>When should <code>bloginfo </code>be used?</h2><p>Good question. It should be used for &#8217;stuff&#8217; that is unique to your installation of WordPress (for example the title or homepage). Let&#8217;s say we want to send a link to the homepage. On your installation it&#8217;s at /word/, but on mine it&#8217;s at /press/! You want to share the theme you&#8217;re using with me, so obviously I&#8217;m going to have to change all the links to the homepage, right? Not true. Using the <code>siteurl </code>parameter, the homepage URL can be dynamically generated. So instead of links reading:</p><pre><code>&lt;a href="/word/"&gt;Homepage&lt;/a&gt;
</code></pre><p>They should be:</p><pre><code>&lt;a href="&lt;?php bloginfo('siteurl'); ?&gt;Homepage&lt;/a&gt;</code></pre><p>That format applies to all uses of <code>bloginfo </code>:</p><pre><code> &lt;?php bloginfo('parameter_here'); ?&gt;</code></pre><h2>Further examples</h2><p>Stylesheet URL. On my installation it&#8217;s /press/wp-content/themes/Biblioteca/style.css but on yours it&#8217;s /word/wordpress-installed-in-a-different-directory-to-the-homepage/wp-content/themes/Biblioteca/style.css. <code>Bloginfo </code>to the rescue again &#8211; instead of:</p><pre><code>&lt;link rel="stylesheet" href="/press/wp-content/themes/Biblioteca/style.css" type="text/css" media="screen,projection" /&gt;
</code></pre><p>You can dynamically generate the stylesheet URL:</p><pre><code>&lt;link rel="stylesheet" href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" type="text/css" media="screen,projection" /&gt;
</code></pre><p>The final example I&#8217;ll do today is the title. On my blog it&#8217;s Press! but on yours it&#8217;s Word! Using the <code>name </code> parameter we can dynamically generate the title:</p><pre><code>&lt;h2&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/h2&gt;
</code></pre><p>And with that, we&#8217;re done. Enjoy your new-found knowledge!</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/using-bloginfo-effectively-in-wordpress/">Using Bloginfo Effectively in WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/FCocHfzzPWhT_u5yWk4Ed5M5ckY/0/da"><img src="http://feedads.g.doubleclick.net/~a/FCocHfzzPWhT_u5yWk4Ed5M5ckY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FCocHfzzPWhT_u5yWk4Ed5M5ckY/1/da"><img src="http://feedads.g.doubleclick.net/~a/FCocHfzzPWhT_u5yWk4Ed5M5ckY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/e-UqWZzskJw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/using-bloginfo-effectively-in-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://wpshout.com/using-bloginfo-effectively-in-wordpress/</feedburner:origLink></item> <item><title>How To: Display Quotes From A Random Post in WordPress</title><link>http://feedproxy.google.com/~r/Nometech/~3/T0UCJU1EOP0/</link> <comments>http://wpshout.com/how-to-display-quotes-from-a-random-post-in-wordpress/#comments</comments> <pubDate>Wed, 21 Oct 2009 15:00:41 +0000</pubDate> <dc:creator>Alex Denning</dc:creator> <category><![CDATA[Theme Development]]></category> <category><![CDATA[Custom Fields]]></category><guid isPermaLink="false">http://wpshout.com/?p=1513</guid> <description><![CDATA[Using custom fields, custom write panels and a custom loop pulling a random post with a custom field, in this tutorial we'll display a random quote in the sidebar of our WordPress blog.<p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/how-to-display-quotes-from-a-random-post-in-wordpress/">How To: Display Quotes From A Random Post in WordPress</a></p> ]]></description> <content:encoded><![CDATA[<p>Whilst considering the best way to show off all the content <em>effectively</em> on <a
href="http://wpshout.com">WPShout</a>, a thought occurred to me &#8211; why not have quotes from articles popping out on the sidebar? In the end I decided against the idea, but I thought I&#8217;d write it up for all to see. I&#8217;m writing this a bit differently &#8211; good, bad? Please do let me know.</p><p><a
href="http://wpshout.com/media/2009/10/quote-big.jpg"><img
class="alignnone size-full wp-image-1516" title="quote-big" src="http://wpshout.com/media/2009/10/quote-big.jpg" alt="quote-big" width="590" height="300" /></a></p><h2>Aim</h2><ul><li>To display a quote from a random article in the sidebar of our blog.</li></ul><h2>Hypothesis</h2><ul><li>Use of custom fields to pull data from posts. Preferably <a
href="http://wpshout.com/create-an-in-post-theme-options-meta-box-in-wordpress/">custom write panels</a> to spice it up a bit.</li><li>Loop (preferably without replacing the loop already in use) to pull a random post and display custom field.</li></ul><h2>Method</h2><p>First thing we&#8217;ve got to do is create the custom field with the quote from the article. Here there are two options. First is to just use the custom field and copy and paste the quote into it. Second option is to make things look a little nicer and use some custom write panels. This isn&#8217;t nearly as hard as it sounds and to prove the point, I&#8217;ve made a screencast which is exactly five minutes long in which I add custom write panels to the default theme. Check it out -</p><p><object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="345" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param
name="flashvars" value="i=20435" /><param
name="allowFullScreen" value="true" /><param
name="src" value="http://screenr.com/Content/assets/screenr_0817090731.swf" /><param
name="allowfullscreen" value="true" /><embed
type="application/x-shockwave-flash" width="560" height="345" src="http://screenr.com/Content/assets/screenr_0817090731.swf" allowfullscreen="true" flashvars="i=20435"></embed></object></p><p>As I&#8217;ve just proved, it&#8217;s easy to add these custom write panels and what I didn&#8217;t quite finish saying was that were you to save any content into your quote field, it&#8217;d then get saved as the custom field quote. We&#8217;re now ready to move onto part two.</p><p>Next we need some way of pulling this custom field and displaying it in the sidebar. The obvious answer is to use the loop and that&#8217;s true, although by doing that you replace the loop <em>already in use</em> which I don&#8217;t really want to do &#8211; if anyone has a better way of doing this please do leave a comment (code should be wrapped in &lt;pre&gt;&lt;code&gt;pre and code&lt;/code&gt;&lt;/pre&gt; tags). Pressing on with this method though, first we need a custom loop:</p><pre><code>&lt;?php
$quotes = new WP_Query();
$quotes-&gt;query('showposts=1&amp;meta_key=Quote&amp;orderby=rand');
while ($quotes-&gt;have_posts()) : $quotes-&gt;the_post(); ?&gt;
&lt;?php endwhile; ?&gt;</code></pre><p>Here we&#8217;re being very clever &#8211; we&#8217;re pulling a random single post with the custom field &#8216;Quote&#8217;. Of course, next we need to pull the custom field so the full loop looks like this:</p><pre><code>&lt;?php
$quotes = new WP_Query();
$quotes-&gt;query('showposts=1&amp;meta_key=Quote&amp;orderby=rand');
while ($quotes-&gt;have_posts()) : $quotes-&gt;the_post(); ?&gt;
&lt;?php echo get_post_meta($post-&gt;ID, "Quote", true); ?&gt;
&lt;?php endwhile; ?&gt;
</code></pre><h2>Conclusion</h2><p>With that, we&#8217;re done. Like the way I&#8217;ve laid this out? Please do leave a comment.</p><p>Post from: <a
href="http://wpshout.com">WPShout.com</a>.Enjoyed this post? Share it!<table
border="0"><tr><td><a
rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink();?>" title="Bookmark this post at Delicious"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/delicious.png" alt="Share on Delicious" /></a></td><td><a
rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>" title="Submit this post to Digg"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/digg.png" alt="Share on Digg!" /></a></td><td><a
rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink();?>" title="Share this post on Reddit"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/reddit.png" alt="Share on Reddit!" /></a></td><td><a
rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink();?>" title="Share this post at StumbleUpon"><img
src="http://wpshout.com/wp-content/themes/NomeMag/images/stumbleupon.png" alt="Share on StumbleUpon!" /></a></td></tr></table><br/><br/><a
href="http://wpshout.com/how-to-display-quotes-from-a-random-post-in-wordpress/">How To: Display Quotes From A Random Post in WordPress</a></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/L2cBIcxAZz6JTe6WOMEgA2H5QB0/0/da"><img src="http://feedads.g.doubleclick.net/~a/L2cBIcxAZz6JTe6WOMEgA2H5QB0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/L2cBIcxAZz6JTe6WOMEgA2H5QB0/1/da"><img src="http://feedads.g.doubleclick.net/~a/L2cBIcxAZz6JTe6WOMEgA2H5QB0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Nometech/~4/T0UCJU1EOP0" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://wpshout.com/how-to-display-quotes-from-a-random-post-in-wordpress/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://wpshout.com/how-to-display-quotes-from-a-random-post-in-wordpress/</feedburner:origLink></item> </channel> </rss><!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk
Database Caching 0/9 queries in 0.002 seconds using memcached

Served from: wphosting02.secure-dns.net @ 2009-11-09 15:50:37 -->
