<?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>Vancouver Web Designer, Wordpress Ninja, and Business Marketing Consultant &#187; Get Post Image</title>
	<atom:link href="http://www.mayurj.com/category/get-post-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mayurj.com</link>
	<description>Call me at 604-787-9993</description>
	<lastBuildDate>Tue, 22 Dec 2009 19:38:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Get Post Image Plugin to optionally show an image on your home page</title>
		<link>http://www.mayurj.com/2009/09/30/using-get-post-image-plugin-to-optionally-show-an-image-on-your-home-page/</link>
		<comments>http://www.mayurj.com/2009/09/30/using-get-post-image-plugin-to-optionally-show-an-image-on-your-home-page/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 23:37:32 +0000</pubDate>
		<dc:creator>Mayur Jobanputra</dc:creator>
				<category><![CDATA[Creative Design]]></category>
		<category><![CDATA[Get Post Image]]></category>
		<category><![CDATA[Web Designer Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Customization]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Post Images]]></category>
		<category><![CDATA[Wordpress Templates]]></category>
		<category><![CDATA[wordpress categories]]></category>

		<guid isPermaLink="false">http://www.mayurj.com/2009/09/30/using-get-post-image-plugin-to-optionally-show-an-image-on-your-home-page/</guid>
		<description><![CDATA[
Get Post Image is a plugin I recently found that let’s you you place an image from a post into your home page to entice visitors to read your post.&#160; I found a trick to OPTIONALLY show an image if it’s found, and not show one if it isn’t.&#160; I used the PHP command “strpos” [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mayurj.com/wp-content/uploads/2009/09/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.mayurj.com/wp-content/uploads/2009/09/image_thumb.png" width="242" height="182" /></a></p>
<p><a href="http://www.andrewgrant.org/get-post-image">Get Post Image</a> is a plugin I recently found that let’s you you place an image from a post into your home page to entice visitors to read your post.&#160; I found a trick to OPTIONALLY show an image if it’s found, and not show one if it isn’t.&#160; I used the PHP command “strpos” which allows me to search for the default.jpg and not show it if my post doesn’t contain an image. </p>
<h3>Installation Instructions:</h3>
<ol>
<li>Download the plugin from <a href="http://www.andrewgrant.org/get-post-image">http://www.andrewgrant.org/get-post-image</a></li>
<li>Install and activate the plugin as with any other Wordpress installation</li>
<li>Determine where you want your image thumbnail to appear (usually on your home page as I have done here), and find your post loop (the </li>
</ol>
<p align="left">&lt;?php   <br />&#160;&#160;&#160; $image_tag = gpi_get_image(0,<a href="http://www.site.com/default.jpg">http://www.site.com/default.jpg</a>, &quot;portfolio-image&quot;);    <br />&#160;&#160;&#160; $url = get_permalink();    <br />&#160;&#160;&#160; $pos = strpos($image_tag,&quot;<a href="http://www.site.com/default.jpg&quot;);">http://www.site.com/default.jpg&quot;);</a>    <br />&#160;&#160;&#160; if($pos === false) {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; echo &quot;&lt;a href=&#8217;$url&#8217; class=preview&gt;$image_tag&lt;/a&gt;&quot;;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // string needle NOT found in haystack    <br />&#160;&#160;&#160; }    <br />&#160;&#160;&#160; else {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // string needle found in haystack    <br />&#160;&#160;&#160; }    <br />&#160;&#160;&#160; ?&gt;    <br />&lt;?php the_excerpt(&#8216;Read the rest of this entry &amp;raquo;&#8217;); ?&gt;</p>
<p align="left">&#160;</p>
<p align="left">If you need more help with installing/configuring this plugin, let me know.&#160; Just shoot me an email if you like.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Using+Get+Post+Image+Plugin+to+optionally+show+an+image+on+your+home+page+http://7ray5.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.mayurj.com/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Using+Get+Post+Image+Plugin+to+optionally+show+an+image+on+your+home+page+http://7ray5.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mayurj.com/2009/09/30/using-get-post-image-plugin-to-optionally-show-an-image-on-your-home-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
