<?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>Calgary Internet Marketing&#187; WordPress</title>
	<atom:link href="http://www.kingrosales.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kingrosales.com</link>
	<description>King Rosales</description>
	<lastBuildDate>Tue, 24 Aug 2010 09:00:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress 3.0 Stable Version Now Released!</title>
		<link>http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/</link>
		<comments>http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 21:05:31 +0000</pubDate>
		<dc:creator>King Rosales</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[stable]]></category>
		<category><![CDATA[Thelonious]]></category>
		<category><![CDATA[WordPress 3.0]]></category>

		<guid isPermaLink="false">http://www.kingrosales.com/?p=1779</guid>
		<description><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/">WordPress 3.0 Stable Version Now Released!</a></p>
This post was originally published on King Rosales Internet Marketing Blog at WordPress 3.0 Stable Version Now Released!
&#8220;Thelonious&#8221; WordPress 3.0 is now officially released. I&#8217;ve been waiting for the stable ...

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-secure-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Secure WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-secure-wordpress/" rel="bookmark">How to Secure WordPress</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></description>
			<content:encoded><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/">WordPress 3.0 Stable Version Now Released!</a></p>
<p>&#8220;Thelonious&#8221; WordPress 3.0 is now officially released. I&#8217;ve been waiting for the stable version to come out since its initial buzz. I just finished upgrading my WordPress a few moments ago. I noticed a problem already&#8230; watch the video or scroll down to see a bug i found.</p>
<p><embed src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" type="application/x-shockwave-flash" width="600" height="350" wmode="transparent" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=BQtfIEY1&amp;width=600&amp;height=350&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" title="Introducing WordPress 3.0 &quot;Thelonious&quot;"></embed></p>
<p>So the bug I discovered was when you click the add photo button beside &#8220;Upload/Insert&#8221; it doesn&#8217;t pop up in a new tiny window, it opens it in the parent window. What does that mean? well for starters, you have to click back twice to go back to the edit post screen and 2 you cant insert image into post; it just doesn&#8217;t work.</p>
<p><a href="http://wordpress.org/download/" target="_blank">Download your version of WordPress 3.0</a></p>



<div>
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 336x280, created 11/13/09 */
google_ad_slot = "6349793182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
         <img src="http://www.kingrosales.com/?ak_action=api_record_view&id=1779&type=feed" alt="" />

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-secure-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Secure WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-secure-wordpress/" rel="bookmark">How to Secure WordPress</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get WordPress to Update Your Permalink</title>
		<link>http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/</link>
		<comments>http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 08:29:35 +0000</pubDate>
		<dc:creator>King Rosales</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.kingrosales.com/?p=1582</guid>
		<description><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/">How to Get WordPress to Update Your Permalink</a></p>
This post was originally published on King Rosales Internet Marketing Blog at How to Get WordPress to Update Your Permalink
Sometimes the first time you type the title of your blog ...

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/" rel="bookmark"><img width="150" height="150" src="http://www.kingrosales.com/wp-content/uploads/2010/02/wordpress_logo_thumbnail.jpg" class="attachment-thumbnail wp-post-image" alt="wordpress_logo_thumbnail" title="wordpress_logo_thumbnail" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/" rel="bookmark">WordPress 3.0 Stable Version Now Released!</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></description>
			<content:encoded><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/">How to Get WordPress to Update Your Permalink</a></p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/02/wordpress_logo_thumbnail.jpg" alt="" title="wordpress_logo_thumbnail" width="150" height="150" class="alignleft size-full wp-image-1281" />Sometimes the first time you type the title of your blog post on WordPress you&#8217;ll go back and edit it or create a new title entirely. One of the great things about WordPress is that its URL Friendly for important things like SEO. When you&#8217;re creating a new post, after you enter your post&#8217;s title, WordPress will automatically create the permalink or URL (make sure you updated the permalink settings in your admin for this to work) for your post. But because WordPress can tell when you&#8217;ve stopped typing in the title area or when you&#8217;ve clicked away like into the content area, it won&#8217;t update the permalink automatically if you decide to edit your post&#8217;s title later.</p>
<p><object width="580" height="350"><param name="movie" value="http://www.youtube.com/v/ynN5Llfnj18&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ynN5Llfnj18&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="350"></embed></object></p>
<div style="float:right;padding-left:10px;margin-left:10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 300x250, created 1/28/10 */
google_ad_slot = "8575630408";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>As you&#8217;ll see in my video, I started out with a long post title but then after I created the video I changed the title of it and I had to get WordPress to regenerate the permalink.</p>
<p>If you like this video and my other WordPress or Internet Marketing related posts, be sure to <strong><a href="http://feeds2.feedburner.com/KingRosales" target="_blank">subscribe to my blog</a></strong>.</p>
<p>Watch this video on:<br />
HowCast &#8211; <a href="http://www.howcast.com/videos/359080-How-To-Get-WordPress-To-Retype-Your-Permalink" target="_blank">http://www.howcast.com/videos/359080-How-To-Get-WordPress-To-Retype-Your-Permalink</a><br />
Vimeo &#8211; <a href="http://vimeo.com/10083716" target="_blank">http://vimeo.com/10083716</a></p>



<div>
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 336x280, created 11/13/09 */
google_ad_slot = "6349793182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
         <img src="http://www.kingrosales.com/?ak_action=api_record_view&id=1582&type=feed" alt="" />

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/" rel="bookmark"><img width="150" height="150" src="http://www.kingrosales.com/wp-content/uploads/2010/02/wordpress_logo_thumbnail.jpg" class="attachment-thumbnail wp-post-image" alt="wordpress_logo_thumbnail" title="wordpress_logo_thumbnail" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/wordpress-3-0-stable-version-now-released/" rel="bookmark">WordPress 3.0 Stable Version Now Released!</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</title>
		<link>http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/</link>
		<comments>http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:09:27 +0000</pubDate>
		<dc:creator>King Rosales</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[get_the_post_thumbnail]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.kingrosales.com/?p=1289</guid>
		<description><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></p>
This post was originally published on King Rosales Internet Marketing Blog at How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress
In WordPress 2.9+, the get_the_post_thumbnail is a new ...

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How To Optimize (SEO) WordPress Tag Pages Title Tags" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark">How To Optimize (SEO) WordPress Tag Pages Title Tags</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></description>
			<content:encoded><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/02/wordpress_logo_thumbnail.jpg" alt="" title="wordpress_logo_thumbnail" width="150" height="150" class="alignleft size-full wp-image-1281" />In WordPress 2.9+, the get_the_post_thumbnail is a new function that was added to allow you to select and display a post&#8217;s thumbnail image. If you have a version of 2.9+ installed, in your wp-includes folder, you will find a file called, post-thumbnail-template.php. Inside, the get_the_post_thumbnail() function is what will allow you to display your post&#8217;s thumbnail or thumbnails for a list of posts such as on your homepage or category (archive) pages. The get_the_post_thumbnail WordPress function will return your thumbnail in an html img tag so all you have to do is call the function where you want your thumbnail to be displayed, then style it using css.</p>
<div style="float:right;padding-left:10px;margin-left:10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 300x250, created 1/28/10 */
google_ad_slot = "8575630408";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p><strong>How to use get_the_post_thumbnail</strong></p>
<p>To use the get_the_post_thumbnail(), the first thing you MUST do is edit your Theme Functions file (functions.php) in your Appearance &gt; Editor section in your wordpress control panel and add the following line within the php opening and close tags:</p>
<p><code><br />
add_theme_support( 'post-thumbnails' )<br />
</code></p>
<p>This activates the &#8220;Post Thumbnail&#8221; widget in your post editor which will appear just below the category selection widget. There, you will find a &#8220;Set thumbnail&#8221; link that will pop up your standard wordpress image browser where you just select the image you want to use for the thumbnail.</p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/02/get_the_post_thumbnail_tutorial.gif" alt="" title="get_the_post_thumbnail_tutorial" width="300" height="250" class="aligncenter size-full wp-image-1290" /></p>
<p>In addition, this code will also activate an option in your image browser, &#8220;Use as Thumbnail&#8221;, which allows you to set your post&#8217;s thumbnail at the same time right after you upload an image.</p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/02/get_the_post_thumbnail_insert.gif" alt="" title="get_the_post_thumbnail_insert" width="300" height="250" class="aligncenter size-full wp-image-1291" /></p>
<p>The last thing you need to do is insert the following code to display the thumbnail in your post or post list:</p>
<p><code><br />
&lt;?php echo get_the_post_thumbnail($post->ID, 'thumbnail'); ?&gt;<br />
</code></p>
<p>Then for each of your posts, set the post thumbnail and it will be displayed wherever you called the function.</p>
<p><strong>Here are the options:</strong></p>
<p><strong>Usage Syntax:</strong><br />
&lt;?php echo get_the_post_thumbnail( $id, $size, $attr ); ?&gt;</p>
<p><strong>Usage Parameters:</strong><br />
 $id</p>
<ul>
<li>(int) (Required) Post ID.</li>
<li>Default: None</li>
</ul>
<p>$size</p>
<ul>
<li>(int) (Optional) Image size.</li>
<li>Default: &#8216;thumbnail&#8217;</li>
</ul>
<p>$attr</p>
<ul>
<li>(int) (Optional)</li>
<li>Default: None</li>
</ul>
<p><strong>Usage Examples:</strong><br />
get_the_post_thumbnail($id);                  // without parameter -> Thumbnail</p>
<p>get_the_post_thumbnail($id, &#8216;thumbnail&#8217;);     // Thumbnail<br />
get_the_post_thumbnail($id, &#8216;medium&#8217;);        // Medium resolution<br />
get_the_post_thumbnail($id, &#8216;large&#8217;);         // Large resolution</p>
<p>get_the_post_thumbnail($id, array(100,100) ); // Other resolutions</p>
<p><strong>What it outputs:</strong><br />
The get_the_post_thumbnail WordPress function will return your thumbnail in an html img tag so all you have to do is call the function where you want your thumbnail to be displayed, then style it using css.</p>
<p><code><br />
&lt;?img src="your_selected_thumbnail.jpg" /&gt;<br />
</code></p>
<p>If you&#8217;re looking for a tutorial on how to have <a href="http://www.kingrosales.com/wordpress/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/">WordPress automatically get and display your post&#8217;s first image thumbnail</a> read my tutorial.</p>
<p>Let me know how this works out for you. Here&#8217;s the official wordpress codex for this function <a href="http://codex.wordpress.org/Template_Tags/get_the_post_thumbnail" target="_blank">http://codex.wordpress.org/Template_Tags/get_the_post_thumbnail</a> and alternatively, here&#8217;s another post that discusses further customization and theme integration options <a href="http://wpengineer.com/the-ultimative-guide-for-the_post_thumbnail-in-wordpress-2-9/" target="_blank">http://wpengineer.com/the-ultimative-guide-for-the_post_thumbnail-in-wordpress-2-9/</a></p>



<div>
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 336x280, created 11/13/09 */
google_ad_slot = "6349793182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
         <img src="http://www.kingrosales.com/?ak_action=api_record_view&id=1289&type=feed" alt="" />

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/" rel="bookmark">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How To Optimize (SEO) WordPress Tag Pages Title Tags" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark">How To Optimize (SEO) WordPress Tag Pages Title Tags</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</title>
		<link>http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/</link>
		<comments>http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:24:07 +0000</pubDate>
		<dc:creator>King Rosales</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.kingrosales.com/?p=1275</guid>
		<description><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></p>
This post was originally published on King Rosales Internet Marketing Blog at How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress
How to use your post&#8217;s first image&#8217;s thumbnail ...

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/" rel="bookmark"><img width="150" height="150" src="http://www.kingrosales.com/wp-content/uploads/2010/06/wordpress_logo_thumbnail.jpg" class="attachment-thumbnail wp-post-image" alt="wordpress_logo_thumbnail" title="wordpress_logo_thumbnail" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/" rel="bookmark">How to Get WordPress to Update Your Permalink</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></description>
			<content:encoded><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/">How to Display Your Post&#8217;s First Image Thumbnail Automatically in WordPress</a></p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/02/wordpress_logo_thumbnail.jpg" alt="" title="wordpress_logo_thumbnail" width="150" height="150" class="alignleft size-full wp-image-1281" />How to use your post&#8217;s first image&#8217;s thumbnail in WordPress. This is a great tutorial because once you upload an image to your post, it&#8217;s thumbnail version will be shown wherever you choose to display the thumbnail even without actually inserting the image into your post or using a custom field.</p>
<div style="float:right;padding-left:10px;margin-left:10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 300x250, created 1/28/10 */
google_ad_slot = "8575630408";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>By default, if you upload an image to your post, WordPress automatically creates a thumbnail version of that image (the default size of your thumbnail can be set in the Settings &gt; Media menu option in your WordPress control panel. Mine is set to 150&#215;150). If you want to display that image without using this custom get function, you can either use the get_custom_meta function or for all WordPress 2.9+ installations, you can use the get_post_thumbnail() function which is easier between the two.</p>
<p>But, if you want to have wordpress automatically get your post&#8217;s first image&#8217;s thumbnail, here&#8217;s what you&#8217;ll need to do:</p>
<p><strong>1. Add the following function to your functions.php file that can be found in Appearance &gt; Editor, then click &#8220;Theme Functions&#8221; link on the right:</strong></p>
<p><code><br />
function get_post_thumbnail() {<br />
$files = get_children('post_parent='.get_the_ID().'&#038;post_type=attachment&#038;post_mime_type=image');<br />
  if($files) :<br />
    $keys = array_reverse(array_keys($files));<br />
    $j=0;<br />
    $num = $keys[$j];<br />
    $image=wp_get_attachment_image($num, 'large', false);<br />
    $imagepieces = explode('"', $image);<br />
    $imagepath = $imagepieces[1];<br />
    $thumb=wp_get_attachment_thumb_url($num);<br />
    print $thumb;<br />
  else:<br />
    print "http://www.yourdomain.com/wp-content/uploads/2010/02/default-post-thumb.jpg";<br />
  endif;<br />
}<br />
</code></p>
<p><strong>2. Second, insert &#8220;&lt;?php get_post_thumbnail();?&gt;&#8221; within an img html tag like the example below:</strong><br />
<code><br />
	&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
	&lt;div class="clearfloat"&gt;<br />
        &lt;img src="&lt;?php get_post_thumbnail(); ?&gt;" alt="&lt;?php the_title(); ?&gt;" class="front-list_thumbnail" /&gt;<br />
	&lt;div class="title"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/div&gt;<br />
        &lt;/div&gt;<br />
      &lt;?php endwhile; ?&gt;<br />
</code></p>
<p><strong>3. Lastly, create a default thumbnail image that will be used in step 1 in case there is no image in your post.</strong><br />
I named my file, &#8220;default-post-thumb.jpg&#8221;</p>
<p>That&#8217;s it. Let me know how this works out for you.</p>



<div>
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 336x280, created 11/13/09 */
google_ad_slot = "6349793182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
         <img src="http://www.kingrosales.com/?ak_action=api_record_view&id=1275&type=feed" alt="" />

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-use-get_the_post_thumbnail-to-set-your-posts-thumbnail-in-wordpress/" rel="bookmark">How to Use get_the_post_thumbnail to Set Your Post&#8217;s Thumbnail in WordPress</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/" rel="bookmark"><img width="150" height="150" src="http://www.kingrosales.com/wp-content/uploads/2010/06/wordpress_logo_thumbnail.jpg" class="attachment-thumbnail wp-post-image" alt="wordpress_logo_thumbnail" title="wordpress_logo_thumbnail" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-get-wordpress-to-update-your-permalink/" rel="bookmark">How to Get WordPress to Update Your Permalink</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.kingrosales.com/how-to-display-your-posts-first-image-thumbnail-automatically-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Secure WordPress</title>
		<link>http://www.kingrosales.com/how-to-secure-wordpress/</link>
		<comments>http://www.kingrosales.com/how-to-secure-wordpress/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 06:29:45 +0000</pubDate>
		<dc:creator>King Rosales</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog security]]></category>
		<category><![CDATA[wordpress security]]></category>

		<guid isPermaLink="false">http://www.kingrosales.com/?p=838</guid>
		<description><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-secure-wordpress/">How to Secure WordPress</a></p>
This post was originally published on King Rosales Internet Marketing Blog at How to Secure WordPress
Here&#8217;s something I came across last November after I found out that a couple of ...

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How To Optimize (SEO) WordPress Tag Pages Title Tags" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark">How To Optimize (SEO) WordPress Tag Pages Title Tags</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/wordpress-wp-pagenavi-plugin-doesnt-work-with-top-level-cats-plugin/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="WordPress WP Pagenavi Plugin Doesn&#8217;t Work With Top Level Cats Plugin" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/wordpress-wp-pagenavi-plugin-doesnt-work-with-top-level-cats-plugin/" rel="bookmark">WordPress WP Pagenavi Plugin Doesn&#8217;t Work With Top Level Cats Plugin</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></description>
			<content:encoded><![CDATA[<p>This post was originally published on <a href="http://www.kingrosales.com">King Rosales Internet Marketing Blog</a> at <a href="http://www.kingrosales.com/how-to-secure-wordpress/">How to Secure WordPress</a></p>
<p><img src="http://www.kingrosales.com/wp-content/uploads/2010/01/wordpress-security-150x150.jpg" alt="" title="wordpress-security" width="150" height="150" class="alignleft size-thumbnail wp-image-1150" />Here&#8217;s something I came across last November after I found out that a couple of my older websites using outdated versions of wordpress got hacked; its called the <strong>WordPress Security Whitepaper</strong>. Its completely, free, translated in several languages (english, simplified chinese and italian). Before I continue writing any further, I just want to give full credit to Blog Security (link at the bottom of this post).</p>
<div style="float:right;padding-left:10px;margin-left:10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 300x250, created 1/28/10 */
google_ad_slot = "8575630408";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>The <strong>WordPress Security Whitepaper</strong> (pdf) has been a work in progress since 2007 and has been such a tremendous help to the wordpress blogging community, and I just had to write about it. You will learn not only how to install wordpress properly, but also important security procedures such as blocking IP addresses, limiting user access, restricting access to wp-install and wp-content directories and more. This document is an important find and I really appreciate the fact that there have been so many people contributing to the document over the years. Thank you.</p>
<p><strong>What&#8217;s inside the WordPress Security Whitepaper:</strong></p>
<p>New Revision: v1.2 (Apr/08)</p>
<p>Table of Contents: (1)<br />
Introduction (2)<br />
Installing WordPress (2)<br />
Accessing your WordPress tables (2)<br />
Changing your WordPress Table Prefix (3)<br />
Before Installation (3)<br />
Manually Change (4)<br />
WP Prefix Table Changer (5)<br />
Preparing the Blog (6)<br />
Changing your Admin Username (6)<br />
Create a new limited access user (7)<br />
Hardening your WP Install (9)<br />
Restricting wp-content &#038; wp-includes (9)<br />
Restricting wp-admin (9)<br />
Block all except your IP (9)<br />
Password Required – .htpasswd (10)<br />
The .htaccess file	 (10)<br />
The .htpasswd file (10)<br />
SPAM (11)<br />
Blog Encryption (12)<br />
Key Plugins (13)<br />
Disabling WordPress Errors (13)<br />
Removing the WordPress Version (13)<br />
Security Above and Beyond (14)<br />
WPIDS – Detect Intrusions (14)<br />
WordPress Plugin Tracker – Are you updated? (14)<br />
WordPress Online Security Scanner (15)<br />
The End (15)</p>
<p>To download the WordPress Security Whitepaper, follow the link to Blog Security below:</p>
<p><a href="http://blogsecurity.net/wordpress/wordpress-security-whitepaper" target="_blank"><strong>WordPress Security Whitepaper on Blog Security</strong></a></p>



<div>
<script type="text/javascript"><!--
google_ad_client = "pub-3010944685897060";
/* 336x280, created 11/13/09 */
google_ad_slot = "6349793182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
         <img src="http://www.kingrosales.com/?ak_action=api_record_view&id=838&type=feed" alt="" />

<h3>Related Posts</h3>
<div style="overflow:auto;">
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="Add Custom Rules to WordPress .htaccess" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/add-custom-rules-to-wordpress-htaccess/" rel="bookmark">Add Custom Rules to WordPress .htaccess</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="How To Optimize (SEO) WordPress Tag Pages Title Tags" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/how-to-optimize-seo-wordpress-tag-pages-title-tags/" rel="bookmark">How To Optimize (SEO) WordPress Tag Pages Title Tags</a></span>
        </div>
		<div class="related-thumb">
                    <a href="http://www.kingrosales.com/wordpress-wp-pagenavi-plugin-doesnt-work-with-top-level-cats-plugin/" rel="bookmark"><img src="http://www.kingrosales.com/wp-content/themes/kingrosales_05272010/images/king-rosales-default-thumb.gif" alt="WordPress WP Pagenavi Plugin Doesn&#8217;t Work With Top Level Cats Plugin" /></a><br/>
                        <span style="clear:left;"><a href="http://www.kingrosales.com/wordpress-wp-pagenavi-plugin-doesnt-work-with-top-level-cats-plugin/" rel="bookmark">WordPress WP Pagenavi Plugin Doesn&#8217;t Work With Top Level Cats Plugin</a></span>
        </div>
	</div>


<div style="margin-bottom:10px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.kingrosales.com/how-to-secure-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
