<?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>Design strike &#187; hacks</title>
	<atom:link href="http://designstrike.net/tag/hacks/feed" rel="self" type="application/rss+xml" />
	<link>http://designstrike.net</link>
	<description>Striking with the latest design info</description>
	<lastBuildDate>Fri, 18 Jun 2010 13:51:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress post related hacks to improve your template</title>
		<link>http://designstrike.net/development/wordpress-post-related-hacks-to-improve-your-template.html</link>
		<comments>http://designstrike.net/development/wordpress-post-related-hacks-to-improve-your-template.html#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:00:17 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://designstrike.net/?p=721</guid>
		<description><![CDATA[In this article you will find various ways of improving your theme by adding various wordpress post hacks like showing related posts, setting up and showing scheduled posts or showing a featured post]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fwordpress-post-related-hacks-to-improve-your-template.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fwordpress-post-related-hacks-to-improve-your-template.html&amp;source=designstrike&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this article you will find various ways of improving your theme by adding various wordpress post hacks like showing related posts, setting up and showing scheduled posts or showing a featured post. All of these hacks can optimize your wordpress blog by increasing time on site, bounce rate and other SEO issues.<br />
<span id="more-721"></span></p>
<h2>How to show related posts based on keywords</h2>
<p>First up <a href="http://www.neato.co.nz/plugins/UTWfinWP2.zip" rel='nofollow'>Download</a>, install, and activate the &#8220;Ultimate Tag Warrior fin&#8221; plugin. After this open up your <strong>single.php</strong> and before the comments template:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>insert this code snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;relatedposts&quot;&gt;
&lt;h2&gt;Related Posts&lt;/h2&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> UTW_ShowRelatedPostsForCurrentPost<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;posthtmllist&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;/php&gt;</pre></div></div>

<p>You can set up the number of related posts by increasing the number &#8220;4&#8243;. Save the single.php and refresh your website. The posts will be shown based on the related keywords other posts have. You can also further stylize your snippet by creating a class entry &#8220;relatedposts&#8221; inside your style.css file.</p>
<h2>How to list scheduled posts</h2>
<p>Sometimes, you schedule posts instead of stuffing them all together at one time. This can be useful if you have much to write about and if you want to let your readers know what to expect for the future. This encourages the reader to visit you again and read that great post you scheduled for another day.</p>
<p>Ok, this snippet is easy to install, just paste the following code anywhere inside your theme files that you want the scheduled post to appear:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_status=future&amp;order=DESC&amp;showposts=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;li&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/li&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h2>How to show a random featured post</h2>
<p>This hack is useful for a number of reasons like SEO optimization, reader engagement, low bounce rate or having something to show-off. And here is how you can do it:</p>
<p>First you need to <a href="http://wordpress.org/extend/plugins/random-featured-post-plugin/" rel='nofollow'>download this plugin</a>, install and activate it.</p>
<p>Next thing is to open up your index.php file, and right after this tag</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>insert this tag</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> show_featured_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You can customize this further by wrapping the tag within a css style like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> &lt;div style=&quot;padding:10px; border:5px solid #ccc; margin-top:10px;&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> show_featured_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://designstrike.net/development/wordpress-post-related-hacks-to-improve-your-template.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Places you can learn how to set up cool stuff using WordPress custom fields</title>
		<link>http://designstrike.net/wordpress/places-you-can-learn-how-to-set-up-cool-stuff-using-wordpress-custom-fields-2.html</link>
		<comments>http://designstrike.net/wordpress/places-you-can-learn-how-to-set-up-cool-stuff-using-wordpress-custom-fields-2.html#comments</comments>
		<pubDate>Tue, 11 Aug 2009 19:04:50 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://designstrike.net/?p=438</guid>
		<description><![CDATA[Today we will learn where you need to go to learn cool new stuff you can implement in your WP template to make it very very attractive. Note that sometimes having a boring plain old theme is not going to get you high up, so the best thing is to spice up your design using [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdesignstrike.net%2Fwordpress%2Fplaces-you-can-learn-how-to-set-up-cool-stuff-using-wordpress-custom-fields-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdesignstrike.net%2Fwordpress%2Fplaces-you-can-learn-how-to-set-up-cool-stuff-using-wordpress-custom-fields-2.html&amp;source=designstrike&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Today we will learn where you need to go to learn cool new stuff you can implement in your WP template to make it very very attractive. Note that sometimes having a boring plain old theme is not going to get you high up, so the best thing is to spice up your design using some of the best <strong>custom field hacks</strong> on the web.<br />
<span id="more-438"></span></p>
<h2>How to set up Thumbnails near your post titles</h2>
<p>Here are some tips and tricks as well as some tutorials on <strong>how to implement Thumbnails in your template using WordPress custom fields</strong>.<br />
</p>
<ul>
<li><strong><a href="http://justintadlock.com/archives/2007/10/27/wordpress-custom-fields-adding-images-to-posts" rel='nofollow'>WordPress Custom Fields: Adding Images To Posts</a></strong></li>
<li><strong><a href="http://www.blogthority.com/75/how-to-add-image-thumbnail-using-wordpress-custom-fields/" rel='nofollow'>How To Add Image Thumbnail Using WordPress Custom Fields</a></strong></li>
<li><strong><a href="http://wordpressgarage.com/code-snippets/giving-each-wordpress-post-a-thumbnail-and-display-the-thumbnail-on-the-home-page/" rel='nofollow'>Giving each WordPress post a thumbnail, and display the thumbnail on the home page</a></strong></li>
</ul>
<h2>Avoiding Duplicate Content using WP custom fields</h2>
<p>Duplicate content is a pain in the nut when you are trying to <strong>SEO your wordpress blog</strong>, so here is how you avoid it using a simple <strong>custom field hack</strong>.<br />
</p>
<ul>
<li><strong><a href="http://weblogtoolscollection.com/archives/2008/05/17/how-to-avoid-duplicate-posts/" rel='nofollow'>How To: Avoid Duplicate Posts</a>, shows how to avoid duplicating multiple posts instead of single post.</strong></li>
<li><strong><a href="http://www.dailyblogtips.com/reducing-duplicate-content-on-wordpress-blog/" rel='nofollow'>Reducing Duplicate Content on WordPress Blogs</a></strong></li>
<li><strong><a href="http://www.seologs.com/wordpress/wordpress-duplicate-content-cure/" rel='nofollow'>Duplicate Content Cure Plugin for WordPress</a></strong></li>
</ul>
<h2>Add Meta Descriptions to your posts using custom fields</h2>
<p>
Some say All in one SEO plugin is better for getting that valuable meta on your posts, but sometimes the custom field hack is much more better. Have a look at these tutorials and learn how to do it.</p>
<ul>
<li><strong><a href="http://www.malcolmcoles.co.uk/blog/unique-meta-description-and-meta-keywords-in-your-wordpress-themes/" rel='nofollow'>Unique meta description and meta keyword tags in your WordPress themes</a></strong></li>
<li><strong><a href="http://www.wprecipes.com/how-to-create-a-meta-description-function-for-your-wordpress-blog" rel='nofollow'>How to: Create a meta description function for your WordPress blog</a></strong></li>
</ul>
<h2>More custom field resources</h2>
<ul>
<li><a href="http://www.kriesi.at/archives/how-to-use-wordpress-custom-fields" rel='nofollow'>How to Use WordPress Custom Fields</a></li>
<li><a href="http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/" rel='nofollow'>Creating Custom Write Panels in WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/custom-shortcodes/" rel='nofollow'>Custom Shortcodes</a></li>
<li><a href="http://wordpress.org/extend/plugins/more-fields/" rel='nofollow'>More Fields</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://designstrike.net/wordpress/places-you-can-learn-how-to-set-up-cool-stuff-using-wordpress-custom-fields-2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
