<?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>Island Colors</title>
	<atom:link href="http://islandcolors.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://islandcolors.com</link>
	<description>SEO/SEM Experts - For Serious Use Only</description>
	<lastBuildDate>Mon, 23 Apr 2012 03:26:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>The Bento Box Approach to SEO</title>
		<link>http://islandcolors.com/bento-box-approach-to-seo/</link>
		<comments>http://islandcolors.com/bento-box-approach-to-seo/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 02:19:45 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[SEO/SEM]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2745</guid>
		<description><![CDATA[<p>Thank you Maile Ohye for a solid Video</p>
 ]]></description>
			<content:encoded><![CDATA[<p>Thank you <a href="https://plus.google.com/111983349552187459374/posts" target="_blank">Maile Ohye</a> for a solid Video</p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/bento-box-approach-to-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not Your Grandfathers GIF</title>
		<link>http://islandcolors.com/not-your-grandfathers-gif/</link>
		<comments>http://islandcolors.com/not-your-grandfathers-gif/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 19:12:04 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2736</guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[ ]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/not-your-grandfathers-gif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great TED Short</title>
		<link>http://islandcolors.com/great-ted-short/</link>
		<comments>http://islandcolors.com/great-ted-short/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 21:45:27 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2726</guid>
		<description><![CDATA[<p>Dear 16-Year Old Me</p>
 ]]></description>
			<content:encoded><![CDATA[<h2>Dear 16-Year Old Me</h2>
<blockquote class="alignleft style02" align="left">
<p> Powerful, Touching and Informative with over 5 million views  </p>
<p><cite></cite></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/great-ted-short/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Once in a While Life Becomes  Literature</title>
		<link>http://islandcolors.com/norman-maclean-usfs-1919/</link>
		<comments>http://islandcolors.com/norman-maclean-usfs-1919/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 06:50:32 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Mixed]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2713</guid>
		<description><![CDATA[<p>Norman MacLean &#8211; USFS 1919</p>
 ]]></description>
			<content:encoded><![CDATA[<h1>Norman MacLean &#8211; <em>USFS 1919</em></h1>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/norman-maclean-usfs-1919/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Truth about Redemption</title>
		<link>http://islandcolors.com/the-truth-about-redemption/</link>
		<comments>http://islandcolors.com/the-truth-about-redemption/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 19:11:34 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2653</guid>
		<description><![CDATA[<p>Is There Redemption for the Life of a Bad Man?</p>
 ]]></description>
			<content:encoded><![CDATA[<h2>Is There Redemption for the Life of a Bad Man?</h2>
<blockquote class="alignleft style02" align="left">
<p> My heart always told me that people are inherently good &#8230; my experience suggest otherwise &#8230; </p>
<p><cite></cite></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/the-truth-about-redemption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>That Dirty Dash</title>
		<link>http://islandcolors.com/the-dirty-dash/</link>
		<comments>http://islandcolors.com/the-dirty-dash/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 03:48:55 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Videos]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=2495</guid>
		<description><![CDATA[<p>That Dirty Dash!!! What a lot of just plain fun.  Check out the video and the music by Kyle Andrews</p>
 ]]></description>
			<content:encoded><![CDATA[<h3><a href="http://kyleandrews.com/" target="_blank">Kyle Andrews</a> says it best in his song:</h3>
<div class="divider_padding"></div>
<blockquote class="alignleft style02" align="left">
<p> You Always Make Me Smile </p>
<p><cite></cite></p>
</blockquote>
<div class="divider_padding"></div>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/the-dirty-dash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Autosave in WordPress</title>
		<link>http://islandcolors.com/disable-autosave-in-wordpress/</link>
		<comments>http://islandcolors.com/disable-autosave-in-wordpress/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 02:03:10 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1941</guid>
		<description><![CDATA[<p>To Autosave or Not Wordpress has an autosave feature that will automatically save your content every 60 seconds. If you have ever made a big mistake while working on a post or article, autosave can ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h2>To Autosave or Not</h2>
<p>Wordpress has an autosave feature that will automatically save your content every 60 seconds.  If you have ever made a big mistake while working on a post or article, autosave can be your White Knight saving you from hours of re-typing.  </p>
<p>The problem arises if you have a lot of content that becomes malformed when it is saved in the editors visual mode. This content can be blocks of code, embedded in videos, even those pesky paragraph tags that</p>
<h2>Adjust the Autosave Interval</h2>
<p>There is no simple directive to turn off the WordPress autosave. You can change its interval from the standard 60 seconds to whatever you would like by simply putting the following directive in the wp-config.php file found in your WordPress root folder:</p><pre class="crayon-plain-tag">define('AUTOSAVE_INTERVAL', 360 );  // seconds</pre><p>If you want to basically turn off autosave you can increase the Interval to some very high number. The other option is creating your own plugin.</p>
<h4>Turn Off Autosave Altogether</h4>
<h2>Create a Simple Plugin</h2>
<p>To just turn autosave off or disable it, you  create your own simple 5 line plugin. To accomplish this you need to create a text file with the name of say turn-off-autosave.php. The next step  you will copy the following code into this text file.</p><pre class="crayon-plain-tag">&lt;?php

Plugin Name: Turn Off Autosave
Description: This is a very simple plugin that turns off the Wordpress autosave function. It simply deregisters the autosave script. You could do the same by increasing the autosave interval time - 60 seconds - by adding define('AUTOSAVE_INTERVAL', 360 );  into the wp-config.php file. This plugin has no settings and  is not located in a folder.

function turn_off_autosave() 
{

wp_deregister_script('autosave');

}
add_action( 'wp_print_scripts', 'turn_off_autosave' );
?&gt;</pre><p></p>
<p>Thirdly, you will take this text file and place it in your WordPress plugin folder which is found inside the wp-content folder. Lastly, you will then activate this plugin by finding the name &#8216;Turn off Autosave&#8217; in the inactive plugin list.</p>
<p>That is it.</p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/disable-autosave-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad Layout CSS &#8211; Fix Using Viewport Meta Tag</title>
		<link>http://islandcolors.com/ipad-layout-css-fix-using-viewport-meta-tag/</link>
		<comments>http://islandcolors.com/ipad-layout-css-fix-using-viewport-meta-tag/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 00:06:40 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1888</guid>
		<description><![CDATA[<p>How to Fix the Right Side Gap in an iPad When the Striking Theme was upgrade to Version 3.05, the theme layout broke in the iPad  Mobile Safari and Firefox. Renders Left Justified By broke, ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>How to Fix the Right Side Gap in an iPad</h4>
<p>When the <strong>Striking Theme</strong> was upgrade to <strong>Version 3.05</strong>, the theme layout broke in the iPad  Mobile Safari and Firefox.<a href="http://islandcolors.com/wp-content/uploads/2011/06/ipad-center-css.jpg"><img class="alignright size-medium wp-image-1889" title="iPad Center CSS" src="http://islandcolors.com/wp-content/uploads/2011/06/ipad-center-css-225x300.jpg" alt="" width="225" height="300" style="margin-right:8px;" /></a></p>
<h2>Renders Left Justified</h2>
<p>By broke, I mean the layout was <strong>not centered in the viewport</strong> of the iPad. It acts as if it was left-justified causing s a slight <strong>gap on the right-side margin.</strong></p>
<h2><strong>There is a CSS Fix</strong></h2>
<p>Yes, there is a CSS fix, but this may require putting an extra wrapper around the code and setting the body tag <strong>margins to auto. </strong> You can follow the thread here on <a href="http://www.webmasterworld.com/css/42" target="_blank">Webmaster World</a> or here at <a href="http://stackoverflow.com/questions/4145972/why-is-my-web-page-left-aligned-on-ipad" target="_blank">Stackoverflow</a></p>
<h5>A Simpler Better Way</h5>
<h2>Use the Viewport Meta Tag</h2>
<p>Yes, by using one of the new Safari browser directives &#8211; that <a href="https://developer.mozilla.org/en/Mobile/Viewport_meta_tag" target="_blank">Firefox mobile is supporting</a> too.  ALL you have to do is put the following somewhere in between the &lt;head&gt; and &lt;/head&gt; in your template</p><pre class="crayon-plain-tag">&lt;meta name=&quot;viewport&quot; content=&quot;width=1100&quot; /&gt;</pre><p>For those of you using WordPress, insert the following in your function.php file</p><pre class="crayon-plain-tag">//////////////////////////////////////////////
/// Add the /viewport meta to the header
/////////////////////////////////////////////
add_action('wp_head', 'add_viewport_meta');

function add_viewport_meta() {
       echo &quot;\n&quot; . '&lt;meta name=&quot;viewport&quot; content=&quot;width=1100&quot; /&gt;' . &quot;\n&quot;;		
}</pre><p></p>
<p>Follow this link for page full of  More <a href="http://islandcolors.com/simple-css-changes-for-striking-theme/">Striking Theme WordPress Tips</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/ipad-layout-css-fix-using-viewport-meta-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Code Snippets</title>
		<link>http://islandcolors.com/jquery-code-snippets/</link>
		<comments>http://islandcolors.com/jquery-code-snippets/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 01:34:26 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Striking Theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1725</guid>
		<description><![CDATA[<p>My Favorite Jquery Code Snippets The Web is a great place to find jQuery code snippets. It is truly amazing what some simple  searches with Google will turn up. In the past I often find ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>My Favorite Jquery Code Snippets</h4>
<p>The Web is a great place to find <a href="http://jquery.com" target="_blank">jQuery</a> code snippets. It is truly amazing what some simple  searches with Google will turn up. In the past I often find myself putting these jQuery code snippets or other bits of information in Gmail and then tagging them in the subject area.</p>
<p>Gmail, just wasn&#8217;t made for this function, even though there was lots and lots of free space to store content in. I recently found a better way using Evernote &#8211; see the <a href="#evernote">bottom of this page</a> for more details</p>
<div class="divider_line"></div>
<p>The following are some of those handy bits of <strong>jQuery code  snippets</strong> that I have in one of my Evernote notebooks.</p>
<h5>jQuery Snippets</h5>
<p>[toggle_content title="Open Prettyphotos on load"]</p><pre class="crayon-plain-tag">jQuery(document).ready(function($){
   // show a Youtube Video
    $.prettyPhoto.open('http://www.youtube.com/watch?v=hNDUNsBKSos', '', 'Click anywhere to skip intro...');
  // 1 second equals 1000 milliseconds movie is 15 seconds this works at 26400
    setTimeout(&quot;$.prettyPhoto.close()&quot;, 26400);
    });</pre><p>[/toggle_content]<br />
[toggle_content title="jQuery Delay like PHP Sleep"]</p><pre class="crayon-plain-tag">jQuery(document).ready(function($){
   $('.top_slide').slideUp(500).delay(700).fadeIn(400);
});</pre><p>[/toggle_content]</p>
<p>[toggle_content title="Add Stripes to Table"]</p><pre class="crayon-plain-tag">jQuery(document).ready(function($){
      // Every other element will be selected
      // CSS would be  background: grey;
       $(&quot;tr:odd&quot;).addClass(&quot;odd&quot;);
    });</pre><p>[/toggle_content]<br />
[toggle_content title="Make HTML5 Work in IE"]</p><pre class="crayon-plain-tag">&lt;!--[if lt IE 9]&gt;
&lt;mce:script _mce_src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/mce:script&gt;
&lt;![endif]--&gt;</pre><p>[/toggle_content]<br />
[toggle_content title="Correctly Enqueue jQuery in WordPress"]</p><pre class="crayon-plain-tag">function my_jquery() {
    // don't replace Wordpress admin jQuery
if( !is_admin()){
        // get rid of old jQuery
   wp_deregister_script('jquery');
       // Register new one using google libs
   wp_register_script('jquery', (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js&quot;), false, '1.6.1');
      // Enqueue new jQuery Script
   wp_enqueue_script('jquery');
}}
     // Add this Wordpress action to init 
     // NOT in wp_head !!!
    // anywhere else can cause problems
add_action('init','my_jquery');</pre><p>
</pre>
<p>[/toggle_content]<br />
[toggle_content title="Ajax Load - No Iframe"]</p><pre class="crayon-plain-tag">$(document).ready(function(){
      $(&quot;#no_iframe&quot;).load(&quot;http://islandcolors.com/jquery-tips&quot;);
});</pre><p>[/toggle_content]<br />
[toggle_content title="Ajax Load - Fade In Fade Out Every 35 Seconds"]</p><pre class="crayon-plain-tag">$(document).ready(function(){
      $(&quot;#no_iframe&quot;).fadeOut('slow').load(&quot;http://islandcolors.com./jquery-tips&quot;).fadeIn('slow');
}, 45000);</pre><p>[/toggle_content]</p>
<div class="divider_top"><a href="#">Top</a></div>
<h5><a name="evernote">Have You Tired Evernote?</a></h5>
<div id="attachment_1726" class="wp-caption alignright" style="width: 309px"><a href="http://islandcolors.com/wp-content/uploads/2011/06/evernote-logo.png"><img class="size-full wp-image-1726 " title="Evernote Rocks" src="http://islandcolors.com/wp-content/uploads/2011/06/evernote-logo.png" alt="Evernote the life saver" width="299" height="187" /></a>
<p class="wp-caption-text">EverNote</p>
</div>
<p>Searching for the information in Gmail with your homegrown Subject line tagging system is problematic , especially if you are using the native email client found on  the iPad.</p>
<p>But, there is another way and that is with <strong>Evernote</strong> . What is nice about Evernote is that you can find it as an App on almost every mobile client that you could use - even Blackberry.  
<div class="sws_grey_box sws_color_box" style="width:540px; border-radius:0px; -moz-border-radius:0px; -webkit-border-radius:0px;">
<div class="sws_grey_box_content sws_box_content" style="border-radius:0px; -moz-border-radius:0px; -webkit-border-radius:0px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h2>Does Evernote Work with Microsoft Mobile 7?</h2>
<p>I just love that question. The question used to be '<strong>Does it work with Mac OS ?</strong>' - Yes it does. And with <a href="http://www.evernote.com/about/download/mac.php" target="_blank">ALL Mac devices</a>. Than you very much.</p>
<p>I  don't know if it does work on Microsoft's <strong>Mobile 7</strong> and <strong>who cares anyway?</strong> - Well, yes it does work on <a href="http://www.evernote.com/about/download/windows.php" target="_blank">Windows and Windows Mobile</a>, but <strong>not Mobile 7.</strong>
</div>
</div>
<p><strong>Evernote </strong>is just a great way to capture everything; from web pages, iPhone photographs, scanned pieces of paper and pictures to verbal notes.</p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/jquery-code-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gallery Format Post</title>
		<link>http://islandcolors.com/gallery-format-post/</link>
		<comments>http://islandcolors.com/gallery-format-post/#comments</comments>
		<pubDate>Fri, 27 May 2011 11:53:42 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Format Previews]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Post Format]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://demo.wpbandit.com/peak/?p=72</guid>
		<description><![CDATA[<p>Simply upload images to a specific post in WordPress, and select the &#8220;Gallery&#8221; post format, and it will automatically turn into a nice slider. It also smoothly resizes the slider height depending on each image&#8217;s ...</p>
 ]]></description>
			<content:encoded><![CDATA[<p>Simply upload images to a specific post in WordPress, and select the &#8220;Gallery&#8221; post format, and it will automatically turn into a nice slider. It also smoothly resizes the slider height depending on each image&#8217;s size. </p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/gallery-format-post/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Limit or Disable WordPress Post Revisions</title>
		<link>http://islandcolors.com/limit-wordpress-posts-revisions/</link>
		<comments>http://islandcolors.com/limit-wordpress-posts-revisions/#comments</comments>
		<pubDate>Wed, 25 May 2011 20:51:08 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1486</guid>
		<description><![CDATA[<p>WordPress Perfectionist Beware Getting your WordPress  post just right takes a lot of time. We all know that the editor has its quirks to say the least. By the time you have completed your 300 ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>WordPress Perfectionist Beware</h4>
<div class="mceTemp">
<dl id="attachment_1513" class="wp-caption alignleft" style="width: 152px;">
<dt class="wp-caption-dt"><a href="http://islandcolors.com/wp-content/uploads/2011/05/rev-4.png"><img class="size-medium wp-image-1513" title="WordPress Revisions" src="http://islandcolors.com/wp-content/uploads/2011/05/rev-4-142x300.png" alt="WordPress Revisions" width="142" height="300" /></a></dt>
</dl>
</div>
<p>Getting your WordPress  post just right takes a lot of time.</p>
<p>We all know that the editor has its quirks to say the least. By the time you have completed your 300 word article and then tweaked it for the 100th time you can end up with a lot of revisions.</p>
<p>If you are a perfectionist, you can have a very large database in no time. This can, in extreme circumstances, slow your site down.</p>
<h5>Disable All Revisions</h5>
<p>It is a shame  that WordPress out of the box doesn&#8217;t have a way to turn on or turn off post revisions, or at the very least limit the number of revisions that will occur for each post.</p>
<h2>They Gave Us  &#8216;WP_REVISIONS&#8217;</h2>
<p>Luckily, they have given us  the ability to do both of those functions  with the <strong>define(&#8216;WP_POST_REVISIONS&#8217;)</strong>, by either specifying <strong>&#8216;false&#8217;</strong> or a <strong>number</strong> of revisions we want to keep for each post.</p>
<h2>Use &#8216;false&#8217; for No Revisions</h2>
<p></p><pre class="crayon-plain-tag">//Disable the Wordpress  revisions feature.
define('WP_POST_REVISIONS', false);</pre><p></p>
<h2>I Want 8 Revisions for Each Post</h2>
<p></p><pre class="crayon-plain-tag">// Set the number of Wordpress revisions
// Here we have 8
define('WP_POST_REVISIONS', 8);</pre><p></p>
<h2>Edit the wp-config.php File</h2>
<p>Yes, sadly, you must access the wp-config.php file via FTP, and  edit it with a text-editor. If you need to ask what is a text-editor and what is FTP, then I would advise not doing this. Find someone who can help you.</p>
<h4>Step 1: Select wp-config.php</h4>
<p style="text-align: center;"><a href="http://islandcolors.com/wp-content/uploads/2011/05/wp-config.png"><img class="aligncenter size-full wp-image-1522" title="wp-config" src="http://islandcolors.com/wp-content/uploads/2011/05/wp-config.png" alt="" width="364" height="231" /></a></p>
<p>Using your trusty FTP program select the wp-config.php file &#8211; duplicate it first for insurance &#8211; and get it up into your text-editor. You should have no difficulty finding it.</p>
<h4>Step2: Edit wp-config.php</h4>
<p><a href="http://islandcolors.com/wp-content/uploads/2011/05/define-revisions.jpg"><img class="aligncenter size-full wp-image-1521" title="define-revisions" src="http://islandcolors.com/wp-content/uploads/2011/05/define-revisions.jpg" alt="" width="554" height="161" /></a></p>
<h2>Put it Where?</h2>
<p>Once you have wp-config.php in your editor, you need to put the  </p>
define( 'WP_POST_REVISIONS')<p> someplace. Don&#8217;t fret just look where there is a statement starting with define and put it on the line below it. Remember to put the &#8216; ; &#8216; at the end of the statement.</p>
<p>In the above example we are using<strong> &#8216;false&#8217;</strong> to indicate we don&#8217;t want any revisions kept. If you<strong> do want</strong> revisions &#8211; but not an unlimited, database crushing  amount &#8211; set <strong>a number</strong> that makes sense to you. Remember you can always go back in and modify this number at a later date.</p>
<p>Once you <strong>save your wp-config.php file</strong>, you are finished for the day.</p>
<h5>Deleting ALL those Revisions</h5>
<p>A revision is  a WordPress built-in Post Type &#8211; </p>
post_type = 'revision'<p>. Each revision is saved with all of the different types of post types in one big MySQL table. Deleting them is relatively simple but dangerous. Here is what the MySQL command looks like.</p><pre class="crayon-plain-tag">// Remember the 'wp_' is the standard WP prefix.
// Yours should be different than the standard 'wp_'
// for security purposes
DELETE FROM wp_posts WHERE post_type = 'revision';</pre><p>Not too complicated, you say. You are correct, but you can really mess things up if you are not careful.</p>
<h2>Ready for phpMyadmin?</h2>
<p>If you have to ask &#8220;<strong>My php what</strong>&#8220;, then you are not ready.  There is a way with the <strong>WP-DBmanager</strong> plugin to execute the <strong>MySQL command</strong> without having to use <strong>phpMyadmin</strong>.  Go ahead and install this <a title="WP-DBmanager" href="http://wordpress.org/extend/plugins/wp-dbmanager/" target="_blank">Swiss Army Knife</a> for managing your database &#8211; it has only been downloaded over 400,000 times, you think it might be good?</p>
<h2>Backup, Backup and Backup</h2>
<p>After  installing and activating WP-DBmanager,  <strong>backup your database</strong> before trying any of its many functions. Once you have completed the backup,  read <a title="How to Delete WordPress Post Revisions without phpMyadmin" href="#" target="_blank">deleting WordPress post revisions</a> &#8211; Did I tell you to Backup your database?</p>
<p>If you are in a hurry, and don&#8217;t want to mess around with DELETE MySQL commands,  look at the box below for a &#8216;no risk way to delete all of those revisions&#8217;.</p>
<div class="sws_grey_box sws_color_box" style="width:540px; border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_grey_box_content sws_box_content" style="border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h2>Did You Know:</h2>
<h6>Get Rid of Those Revisions Manually</h6>
<p>Afraid of playing around with the <strong>DELETE MySQL Command</strong>?   Who could blame you?</p>
<p>There is a manual way to get rid of all those revisions without coming within a <strong>Texas mile </strong>of a MySQL command.</p>
<p>Insert the <strong>define(&#8216;WP_POST_REVISIONS&#8217;, 5);</strong> into your wp-config.php file with the number of revisions you want to keep &#8211; say 5 as an example.</p>
<p>Next go to the Post edit main page and <strong>delete</strong> everything in your <strong>Trash</strong>.</p>
<p>Next click on <strong>Title</strong> and select all your posts on the page. Go to the <strong>&#8216;Bulk Actions&#8217;</strong> drop down list and select <strong>&#8216;Move to Trash&#8217;</strong>. Click on <strong>&#8216;Apply&#8217;</strong>.</p>
<p>Do this until all your Post are in the Trash &#8211; of course you do have a <strong>fresh backup</strong> of your database don&#8217;t you?</p>
<p>Lastly, select <strong>&#8216;Trash&#8217;</strong> and then click on <strong>Title</strong> to select all of your Trashed posts.</p>
<p>Select <strong>&#8216;Restore&#8217;</strong> from the Bulk Actions drop down list and click on <strong>Apply</strong>.</p>
<p>Continue doing the process until all of your post are restored.</p>
<p>Now, everyone of your Post will have no more than 5 revisions
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/limit-wordpress-posts-revisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Striking Theme &#8211; Add a Meta Box to Multiple Custom Post</title>
		<link>http://islandcolors.com/add-a-meta-box-to-multiple-custom-post/</link>
		<comments>http://islandcolors.com/add-a-meta-box-to-multiple-custom-post/#comments</comments>
		<pubDate>Mon, 23 May 2011 22:56:26 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Striking Theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1384</guid>
		<description><![CDATA[<p>Multiple Custom Post Types In a previous article I showed you how to add the Striking Theme&#8216;s Shortcode Generator Meta box to an individual Custom Post Type &#8211; Can you believe all the WordPress jargon ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>Multiple Custom Post Types</h4>
<p>In a previous article I showed you how to add the <a href="http://islandcolors.com/striking-theme-review/">Striking Theme</a>&#8216;s Shortcode Generator Meta box to an<a title="Striking Theme – Add a Meta Box to Custom Post" href="http://islandcolors.com/striking-theme-add-meta-box-to-custom-post/"> individual Custom Post Type</a> &#8211; Can you believe all the WordPress jargon in this one sentence?</p>
<p>If you recall it was relatively simple using the </p>
add_meta_box()<p> WordPress function:</p><pre class="crayon-plain-tag">add_action('admin_menu', 'shortcode_gen_to_post_types');

function shortcode_gen_to_post_types () {
     add_meta_box(
       'shortcode',
       __('Shortcode Generator','striking_admin'),
      'theme_shortcode_generator_iframe',
      'actooltip',
      'normal',
      'high'
      );
       }</pre><p>The  </p>
add_meta_box <p> can only be used for one Custom Post Type (<strong>CPT</strong>) at a time. If you had three <strong>CPT</strong>s  &#8211; &#8216;profiles&#8217;, &#8216;movies&#8217; and &#8216;lunch_meats&#8217; &#8211; you would have to create a function for each one or chain multiple </p>
add_meta_box()'s <p> together in one function.</p>
<h5>A Trick Pony will Do That</h5>
<p>Yes, our Trick &#8216;PHP&#8217; Pony can do that by grabbing the values of a multidimensional array using the PHP </p>
 foreach <p> statement. A multidimensional array? Maybe chaining the </p>
add_meta_box<p> is an easier way to do this.   You can learn a little about multidimensional arrays and the </p>
<a href="http://php.net/manual/en/control-structures.foreach.php"> foreach</a> <p> statement if you want.</p>
<h4>Step 1: Values You will need to Have</h4>
<p>You will need the same values as were required for the <strong>Single Custom Post</strong>.</p>
<p>[list type="red"]</p>
<p>[li] The Metabox  Name &#8211; <strong>&#8216;shortcode&#8217;</strong> [/li]</p>
<p>[li] The Admin Name of the Metabox &#8211; <strong>_(‘Shortcode Generator’, ‘striking_admin’)</strong> [/li]</p>
<p>[li] The Metabox Function &#8211; ‘<strong>theme_shortcode_generator_iframe</strong>‘ [/li]</p>
<p>[li] The Custom Post Type Slug(s) &#8211; <strong>&#8216;profiles&#8217;, &#8216;movies&#8217;, &#8216;lunch_meats&#8217;</strong> We will get Yours using the get_post_type() function [/li]</p>
<p>[li] The Metabox Location &#8211; <strong>&#8216;normal&#8217;</strong> [/li]</p>
<p>[li] The Priority for the Metabox &#8211; <strong>&#8216;high&#8217;</strong> [/li]</p>
<p>[/list]</p>
<p>We will replace &#8216;profiles&#8217;, &#8216;movies&#8217;, &#8216;lunch_meats&#8217; with your<strong> CPT</strong> slugs, by selecting for  &#8217;_builtin&#8217; Custom Post Types equals false argument in get_post_types() .This array will get all of the Custom Post Types not created by WordPress.</p>
<h4>Step 2: Copy and Paste</h4>
<p>Yes, lets copy and paste the following into your function.php file &#8211; you will find this <strong></strong>in the following WordPress directory <strong>wp-content/themes/striking/function.php</strong>.</p><pre class="crayon-plain-tag">add_action('admin_menu', 'shortcode_gen_to_post_types');

function shortcode_gen_to_post_types () {

//	add_meta_box(
//		'shortcode',
//		__('Shortcode Generator','striking_admin'),
//		'theme_shortcode_generator_iframe',
//		'[custom post type slug]', // you can only put one value here
//		'normal',
//		'high'
//		);

//
///  The page string does not accept an array we will use a foreach loop
///  to create mulitpe boxes 
 $buitin = array('_builtin' =&amp;gt; false,); //Get only non built-in CPT
 $post_names = get_post_types($buitin,'names'); //This will be the array of CPT names

$args = array(
    'id' =&amp;gt; 'shortcode',
    'title' =&amp;gt; __('Shortcode Generator','striking_admin'),
    'pages' =&amp;gt; $post_names, //All of the non-builtin CPT are here
    'callback' =&amp;gt; 'theme_shortcode_generator_iframe',
    'context' =&amp;gt; 'normal',
    'priority' =&amp;gt; 'high',
				);

foreach ($args['pages'] as $page) {
        add_meta_box($args['id'], $args['title'], $args['callback'], $page, $args['context'], $args['priority']);
    }
}</pre><p></p>
<h4>Step 3: We Love Get_Custom_Post_Types</h4>
<p>Our Trick Pony is really doing its job with the get_custom_post_types()  _builtin=&gt; false. We can  sit back and watch his moves and leave our brain in our pockets and not worry if we are missing any Custom Post Slugs.</p>
<h4>Step 4: Start Using the Shortcode Generator</h4>
<p>Now your Trick Pony should be working and you should have those nifty Striking Shortcodes available for your Custom Post Type and you should be making those incredible unique landing pages that will increase your ROI 100 fold.</p>
<div class="sws_green_box sws_color_box" style="width:540px; border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_green_box_content sws_box_content" style="border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h2>I Want to Know:</h2>
<p>Why did KaptinLIN design the Striking Theme with the shortcode generator in a metabox instead of in WSIWG Editor as an icon?</p>
<p>Maybe he is saving us from an upgrade nightmare when the next version of WordPress writes a complete makeover of the Editor?
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/add-a-meta-box-to-multiple-custom-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple CSS Enhancments for Striking Theme</title>
		<link>http://islandcolors.com/simple-css-enhancments-for-striking-theme/</link>
		<comments>http://islandcolors.com/simple-css-enhancments-for-striking-theme/#comments</comments>
		<pubDate>Mon, 02 May 2011 01:07:08 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Striking Theme]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1819</guid>
		<description><![CDATA[<p>CSS Changes to Enhance Striking Theme The Striking Premium Theme by Kaptinlin is fast becoming my theme of choice. It is no secret that I&#8217;ve been a Thesis Framework for many years, but I am ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>CSS Changes to Enhance  Striking Theme</h4>
<p>The Striking Premium Theme by Kaptinlin is fast becoming my theme of choice.  It is no secret that I&#8217;ve been a Thesis Framework for many years, but I am finding more-and-more that I am recommending the Striking Theme to my SMB clients.</p>
<h2>PREMMISS: Use Only WordPress Editor &#8211; No FTP</h2>
<p>The goal is to do all of these changes <strong>using only the WordPress built in Theme editor</strong>. I would highly recommend making your web site future proof by following Chris Pearson&#8217;s <a href="http://www.pearsonified.com/2007/02/how_to_protect_css_mods_for_any_wordpress_theme.php" target="_blank">Guide to a Custom CSS file and Function file</a>. But, this would require us to use a FTP client and some type of editor.</p>
<p>Before we start adding CSS Hacks we are gong to need to do the following simple steps to setup our workspace</p>
<ul class="sws_ul_ui" style="margin-left:30px">
<li style="margin-left:25px"><span class="ui-icon ui-icon-zoomin"></span>Add the class  custom to the body tag  </li>
<li style="margin-left:25px"><span class="ui-icon ui-icon-zoomin"></span>Add the style.css into the header </li>
</ul>
<h5>Access the WordPress Theme Editor</h5>
<p>Go to your WordPress Dashboard and on the left side do the following:</p>
<p>Appearance -&gt; Editor<br />
<a href="http://islandcolors.com/wp-content/uploads/2011/05/wordpresseditor.jpg"><img class="aligncenter size-medium wp-image-1859" title="Wordpress Editor" src="http://islandcolors.com/wp-content/uploads/2011/05/wordpresseditor-300x160.jpg" alt="Wordpress Editor" width="300" height="160" /></a></p>
<p>Next, look down the right side of the Editor and find:</p>
<p><strong>Theme Functions(functions.php). </strong>The functions.php file will be loaded into the editor and you should see the following</p><pre class="crayon-plain-tag">&lt;?php 
/* Load the Theme class. */
require_once (TEMPLATEPATH . '/framework/theme.php');

$theme = new Theme();
$theme-&gt;init(array(
    'theme_name' =&gt; 'Striking', 
    'theme_slug' =&gt; 'striking'
));</pre><p>Next add the following so that the the functions.php file looks like this:</p><pre class="crayon-plain-tag">&lt;?php 
/* Load the Theme class. */
require_once (TEMPLATEPATH . '/framework/theme.php');

$theme = new Theme();
$theme-&gt;init(array(
    'theme_name' =&gt; 'Striking', 
    'theme_slug' =&gt; 'striking'
));

///////////////////////////////////////
/// Attach body_class(custom) function
/// with filter so that custom class
//////////////////////////////////////
add_filter('body_class', 'custom_body_class');

function custom_body_class($classes) {
		$classes[] = 'custom';
			return $classes;
}
//////////////////////////////////////////////
/// Add the /style.css to the header
/////////////////////////////////////////////
add_action('wp_head', 'custom_css');

function custom_css() {
	echo &quot;\n&quot; . '&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;' . THEME_URI .'/style.css&quot; /&gt;' . &quot;\n&quot;;

		
}</pre><p></p>
<h2>Start Using the Style.css File</h2>
<p>Now Save the functions.php file and you are all setup to start using the style.css file for all your CSS modifications. You should see the following:</p>
<p><a href="http://islandcolors.com/wp-content/uploads/2011/05/style-css.jpg"><img class="aligncenter size-full wp-image-1856" title="Style.css" src="http://islandcolors.com/wp-content/uploads/2011/05/style-css.jpg" alt="" width="230" height="258" /></a></p><pre class="crayon-plain-tag">/*
Theme Name: Striking
Description: Designed by &lt;a href=&quot;http://themeforest.net/user/Kaptinlin&quot;&gt;Kaptinlin&lt;/a&gt;.
&lt;a href=&quot;http://twitter.com/kaptinlin&quot; target=&quot;_blank&quot;&gt;Follow KaptinLin on Twitter&lt;/a&gt; for the updates.
 Get support from &lt;a href=&quot;http://kaptinlin.com/support/&quot;&gt;Forum&lt;/a&gt;.
Author: &lt;a href=&quot;http://themeforest.net/user/Kaptinlin&quot;&gt;Kaptinlin&lt;/a&gt;
Version: 3.0.5
Author URI: http://themeforest.net/user/Kaptinlin
*/</pre><p></p>
<h2>Use .custom Prefix on all CSS Changes</h2>
<p>From now on you will <strong>always</strong> use the <span style="color: #ff0000;"><strong>.custom</strong> </span>prefix on all modifications in the style.css file. The reason behind this is CSS&#8217; built in specificity. So if you were going to change the footer id to not display you would in the past without the custom class in the body tag use the following CSS:</p><pre class="crayon-plain-tag">#footer {
  display:none;
}</pre><p>Now you will always put the custom class prefix on all changes:</p><pre class="crayon-plain-tag">.custom #footer {
  display:none;
}</pre><p></p>
<div class="sws_grey_box sws_color_box" style="width:560px; border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_grey_box_content sws_box_content" style="border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_red_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h5>Child Theme Options</h5>
<p>In June of 2011, Striking officially supported <strong>Child Themes</strong> with <strong>version 3.05</strong>.<br />
The use of Child Themes in some instances may make more sense than the above examples.<br />
Read this article to learn more about <a href="http://codex.wordpress.org/Child_Themes">WordPress Child Themes</a> to see if it makes more sense for your installation.<br />
As for me, It is hard to teach an <strong>old dog new tricks</strong>, I would much rather use the<a href="http://www.pearsonified.com/2008/05/how-to-use-wordpress-functions.php#more-294"> Chris Pearson&#8217;s Custom folder trick</a> which is an enhanced version of the above.
</div>
</div>
<h4>The Following are Simple CSS Tricks</h4>
<div data-id='closed' class="toggle">
<h4>My Logo Needs More Space on the Bottom</h4>
<div class="toggle-inner">
<p>Amazingly, there is no need for CSS here. Use the Striking General Option panel. The adjustment for the bottom logo height solves many issue. Try it  before any major changes.<br />
<a href="http://islandcolors.com/wp-content/uploads/2011/06/striking-options-general.001.jpg"><img class="aligncenter size-medium wp-image-1863" title="Striking Thene General Options" src="http://islandcolors.com/wp-content/uploads/2011/06/striking-options-general.001-300x172.jpg" alt="Striking Theme General Options" width="300" height="172" /></a>
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Center My Logo</h4>
<div class="toggle-inner">
This needs a very simple CSS change. Again, use the <span style="color: #ff0000;"><strong>.custom </strong></span>prefix if you followed the above tutorial</p><pre class="crayon-plain-tag">.custom #logo,
.custom #logo_text {
      /* This container is absolute. Only top, bottom, right or left will
           move it. Margins, padding etc will not work */
	position: absolute;
     /* The area is 940px wide depending on your logo size you will have to adjust
          left: 0px means the logo sits on the left most edge.
          Every 1px moves the left margin closer to the right side */
	left: 400px;
}</pre><p>That is it one simple adjustment of the left margin.
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Remove the Top and Bottom Feature Box Shadows</h4>
<div class="toggle-inner">
There are a number of simple ways to do this. One is to just use <strong>display:none;</strong>, but this removes the spacing. Here is a way that keeps the spacing.<br />
Remove the Bottom shadow:</p><pre class="crayon-plain-tag">.custom #feature .bottom_shadow {
       background-image:none;
   /* you can adjust the height here */
       height: 9px;
}</pre><p>Now for the Top shadow:</p><pre class="crayon-plain-tag">.custom #feature .top_shadow {
       background-image:none;
   /* you can adjust the height here */
       height: 9px;
}</pre><p>Not much more too it.
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Remove the Bottom Slider Shadows</h4>
<div class="toggle-inner">For this too, there are a number of simple ways to remove this shadow. One is to just use <strong>display:none;</strong>, but this removes the spacing. Here is a way that keeps the spacing. Below well remove all the bottom shadows for all the sliders that Striking Theme has<br />
Remove the Nivo Bottom shadow:</p><pre class="crayon-plain-tag">.custom #nivo_slider_wrap {
	background-image: none;
    /* Adjust the bottom padding if needed */
        padding-bottom:40px;
}</pre><p>Remove the Kwicks Bottom shadow:</p><pre class="crayon-plain-tag">.custom #kwicks_shadow {
	background-image::none;
    /* Adjust the bottom padding if needed */
	height:40px;
}</pre><p>Remove the Anything Bottom shadow:</p><pre class="crayon-plain-tag">.custom #anything_shadow {
	background-image:none;
      /* Adjust the bottom padding if needed */
	height:40px;
}</pre><p>Just remember, that you can always adjust the height at the bottom using the background-image:none. If you use display:none, you do not have access to adjusting the height as the container will not be displayed. You could use visibility:hidden, but let&#8217;s keep it simple.
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Center a Web Page in an iPad Every Time</h4>
<div class="toggle-inner"> Often times a web page will left justify when viewed in an iPad or mobile Safari. This can easily be corrected using the Viewport Meta tag. Add the following into your functions.php file</p><pre class="crayon-plain-tag">//////////////////////////////////////////////
/// Add the /viewport meta to the header
/////////////////////////////////////////////
add_action('wp_head', 'add_viewport_meta');

function add_viewport_meta() {
       echo &quot;\n&quot; . '&lt;meta name=&quot;viewport&quot; content=&quot;width=1100&quot; /&gt;' . &quot;\n&quot;;		
}</pre><p>In the Striking Theme without this meta tag, you will see a right gap when the web page is viewed on an iPad. It acts as if the page was left justified. This quickly corrects the problem
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Center the Striking Theme Copyright and Footer Menus</h4>
<div class="toggle-inner">The copy right in the Striking Theme is left justified and the footer menu is right justified. Use the following CSS to make them both center aligned. Add the extra width of 100% to both IDs just-in-case.</p><pre class="crayon-plain-tag">.custom #copyright {
	/* float: left; */
	text-align: center;
	font-size:13px;	
	line-height:1.5em;
        width:100%; /* just in case */
}

.custom #footer_menu {
	/* float: right;
	text-align:right; */
        text-align:center;
        width:100%; /* just in case */
}</pre><p>
</div>
</div>
<div data-id='closed' class="toggle">
<h4>Fix Your Server Permission Issues</h4>
<div class="toggle-inner"> James or Websys at the <a href="http://kaptinlin.com/support/discussion/">Striking Theme forum</a> wrote up an excellent article about Fixing Server Permissions<br />
[lightbox href="http://kaptinlin.com/support/discussion/1281/server-permissions-how-to-adjust-your-hosting-if-your-settingssliders-not-working-7-april11?hl=en&#038;tab=nw" iframe="true" width="990" height="1000"]Everything You Need to Know about Server Permissions[/lightbox]<br />
This is a Great starting point and finishing point for that matter.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/simple-css-enhancments-for-striking-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Striking Theme &#8211; Add a Meta Box to Custom Post</title>
		<link>http://islandcolors.com/striking-theme-add-meta-box-to-custom-post/</link>
		<comments>http://islandcolors.com/striking-theme-add-meta-box-to-custom-post/#comments</comments>
		<pubDate>Mon, 02 May 2011 00:04:52 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Striking Theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1192</guid>
		<description><![CDATA[<p>Add Striking &#8216;s Meta Box to A Custom Post It is no secret that one of my favorite premium themes is the Striking Professional Theme found at Theme Forest.  As of May 2nd 2011, Striking has ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>Add Striking &#8216;s Meta Box to A Custom Post</h4>
<p>It is no secret that one of my favorite premium themes is the <a title="Striking Professional WordPress Theme" href="http://themeforest.net/item/striking-premium-corporate-portfolio-wp-theme/128763?ref=runner2009" target="_blank">Striking Professional Theme</a> found at Theme Forest.  As of May 2nd 2011, Striking has been downloaded  over 3,300 times, making it the second most popular WordPress theme at <a href="http://themeforest.net/category/wordpress?sort_by=sales_count&amp;type=files&amp;categories=wordpress&amp;page=1" target="_blank">Theme Forest</a>.</p>
<p>Not only does Striking have many great features and can almost be considered a framework &#8211; one of the few things lacking is his own hooks and filters &#8211;  <br />
<blockquote class="alignleft style02" align="left">
<p> Striking has over 100 shortcodes, 12 widgets and unlimited color combinations and is one of the few themes that is priced at $40 </p>
<p><cite></cite></p>
</blockquote>
<p> and is surprisingly flexible especially with the creative use of both the blog and portfolio shortcodes that can be inserted on both pages and posts. The author who calls himself <strong>Kaptinlin</strong> is an extremely  talented WordPress Programer, which is evident from  his code and the flexibility that is built into the theme.</p>
<h5>Striking Theme Shortcode Generator</h5>
<div rel="album" class="picture_frame1 sws_frame_left use-lightbox-yes">
<div class="picture_frame1_img"><img rel="" width="320" height="197" alt="" title="" src="http://islandcolors.com/wp-content/plugins/styles-with-shortcodes/includes/thumbnail.php?src=http%3A%2F%2Fislandcolors.com%2Fwp-content%2Fuploads%2F2011%2F05%2Fshortcode-generator.png&#038;h=197&#038;w=320&#038;zc=1" style="visibility:hidden" /></div>
</div>
<p> All of the 100+ shortcodes can be inserted into the WordPress Editor through selection list &#8211; many themes don&#8217;t use drop-down list or meta boxes to insert shortcodes. Kaptinlin chose to use a metabox to generate the shortcodes instead of adding  it to the top bar of the WordPress editor.</p>
<h5>A Problem With Custom Post Types</h5>
<p>Putting the Shortcode Generator in a metabox instead of  an icon on the editor makes it difficult to use the <strong>Shortcode Generator</strong> with Custom Post Types that either you create or are created when you install  plugins.</p>
<p>To be sure, Kaptinlin, provided an area in the <strong>Striking Options</strong> -&gt; <strong>Advanced</strong> where you can select what Custom Post Types
<div rel="album" class="picture_frame1 sws_frame_right use-lightbox-yes">
<div class="picture_frame1_img"><img rel="" width="320" height="197" alt="" title="" src="http://islandcolors.com/wp-content/plugins/styles-with-shortcodes/includes/thumbnail.php?src=http%3A%2F%2Fislandcolors.com%2Fwp-content%2Fuploads%2F2011%2F05%2Fstriking-advanced-options.png&#038;h=197&#038;w=320&#038;zc=1" style="visibility:hidden" /></div>
</div>
<p> the  Shortcode Generator Meta box will be available, but again this does not extend to Custom Post Types that did not come with the Striking Theme.
<div class="divider_basic"></div>
<h4><strong>Two Additions to the Function.php File</strong></h4>
<p>It is relatively simple to add the Shortcode Generator Metabox to an individual Custom Post. With the following method you don&#8217;t have to hack any of the Striking Theme core files. All you need is access to the theme&#8217;s function.php file or you can use your own custom one if you follow the strategies of  <a href="http://www.pearsonified.com/2008/05/how-to-use-wordpress-functions.php" target="_blank">Chris Pearson&#8217;s Custom Functions and Custom CSS </a>strategy .</p>
<p>Open up your function.php file in your favorite editor and after the </p>
 <!--?php   <p> then you must enter the following two code snippets:</p-->
<div class="sws_grey_box sws_color_box" style="width:570px; border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_grey_box_content sws_box_content" style="border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h5>Here is What <span style="color: #ff0000;">add_action</span> Does</h5>
<p>This <strong>add_action</strong> is the WordPress hook that executes the function <strong>shortcode_gen_to_post_types</strong> when the admin menus area created.  Make sure your function name matches the function that adds the meta box
</div>
</div>

</p><pre class="crayon-plain-tag">&lt;?php add_action('admin_menu', 'shortcode_gen_to_post_types');?&gt;</pre><p>
<div class="sws_grey_box sws_color_box" style="width:570px; border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_grey_box_content sws_box_content" style="border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h5>Here is What the <span style="color: #ff0000;">add_meta_box</span> Does</h5>
<p>The <strong>add_meta_box</strong> requires the following paramaters &#8211; getting the correct ones can be problematic but here is a simple way to find the <a title="Get the Custom Post Type Slug" href="http://islandcolors.com/get-the-custom-post-type-slug/" target="_blank">registered custom post type</a> &#8211; The list is as follows <strong>add_action(</strong></p>
<p style="padding-left: 30px;">[list type="blue"]</p>
<li style="padding-left: 30px;">Line 3 is the &#8216;ID&#8221; of  the meta box registered name use &#8216;<strong>shortcode</strong>&#8216; for Striking</li>
<li style="padding-left: 30px;">Line 4 is the title of the meta box use the strange looking php code<br />
 __(  <p>  that Kaptinlin provides. If you must know this code is used for the translation process.</li>
<li style="padding-left: 30px;">Line 5 is the function that displays the meta box use &#8216;<strong>theme_shortcode_generator_iframe</strong>&#8216; in Striking&#8217;s case</li>
<li style="padding-left: 30px;">Line 6 is the custom post type slug or registered name . I am using &#8216;<strong>actooltip</strong>&#8216; &#8211; You can find yours by using the <a title="Get the Custom Post Type Slug" href="http://islandcolors.com/get-the-custom-post-type-slug/">Custom Post Slug Shortcode</a>.</li>
<li style="padding-left: 30px;">Line 7 is where you want the meta box to be placed &#8216;<strong>normal</strong>&#8216; for Striking</li>
<li style="padding-left: 30px;">Line 8 is the priority of where the meta box should show &#8211; lets try &#8216;<strong>high</strong>&#8216;</li>
<p style="padding-left: 30px;">[/list]</p>
<h2 style="text-align: center;">And Your Are Done</h2>
<p>And that is really all there is to it &#8211; for an in-depth look review the <a href="http://codex.wordpress.org/Function_Reference/add_meta_box">WordPress Function Codex</a> on the subject.</p>
</div>
</div>
<p></p><pre class="crayon-plain-tag">function shortcode_gen_to_post_types () {
     add_meta_box(
       'shortcode',
       __('Shortcode Generator','striking_admin'),
      'theme_shortcode_generator_iframe',
      'actooltip',
      'normal',
      'high'
      );
       }</pre><p></p>
<div class="divider_top"><a href="#">Top</a></div>
<p>That is basically it.  Don&#8217;t worry about the first three paramaters:</p>
<ol>
<li>&#8216;<strong>shortcode</strong>&#8216;,</li>
<li><strong>_(&#8216;Shortcode Generator&#8217;, &#8216;striking_admin&#8217;)</strong>,</li>
<li> &#8216;<strong>theme_shortcode_generator_iframe</strong>&#8216;</li>
</ol>
<p>these are correct and unless Kaptinlin changes them everything will work.</p>
<p>If you would like to add the Shortcode Generator to <a title="Striking Theme – Add a Meta Box to Multiple Custom Post" href="http://islandcolors.com/add-a-meta-box-to-multiple-custom-post/">ALL your Custom Post Types at once </a> please read the tutorial and follow its simple copy and paste steps.</p>
<div class="sws_green_box sws_color_box" style="width:560px; border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_green_box_content sws_box_content" style="border-radius:6px; -moz-border-radius:6px; -webkit-border-radius:6px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h2 style="text-align: left;">Did You Know?</h2>
<p>Kaptinlin did Change the <strong>Shortcode Generator</strong> to display as an iframe when he upgrade from the 2.0 to the 3.0 version. If you did up-grade to the new version the above function would have broken.
</div>
</div>
<p>If you need help in finding the slug of your or a plugins custom post type, kindly review the following page <a title="Get the Custom Post Type Slug" href="http://islandcolors.com/get-the-custom-post-type-slug/">Finding a Custom Post Type Slug</a> follow the steps outline in the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/striking-theme-add-meta-box-to-custom-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get the Custom Post Type Slug</title>
		<link>http://islandcolors.com/get-the-custom-post-type-slug/</link>
		<comments>http://islandcolors.com/get-the-custom-post-type-slug/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 06:50:05 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Striking Theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://islandcolors.com/?p=1242</guid>
		<description><![CDATA[<p>What is a WordPress Custom Post Slug? The Custom Post Type (CPT) slug is the registered name of a particular Custom Post Type. It is its unique name like an IP number or address. That ...</p>
 ]]></description>
			<content:encoded><![CDATA[<h4>What is a WordPress Custom Post Slug?</h4>
<p>The Custom Post Type (<strong>CPT</strong>) slug is the registered name of a particular Custom Post Type. It is its unique name like an IP number or address.  That is it.<br />
It is hard enough to grasp the difference between a WordPress Page and Post but in reality, they are both Post; just different types hence different Post Types.<br />
Looking at your Administration Dashboard left sidebar, a number of the items are just different Post Types hence they each have their own Post Type slug or name.</p>
<h5>A Page is a Post?</h5>
<p>There is a quick way to find the <strong>CPT</strong> registered name or slug. It doesn&#8217;t work all of the time, but it is a good place to start. Go to your Admin Dashboard</p>
<div id="attachment_1279" class="wp-caption alignright" style="width: 171px"><a href="http://islandcolors.com/wp-content/uploads/2011/04/page-admin-bar.png"><img class="size-full wp-image-1279" title="Page Admin Bar" src="http://islandcolors.com/wp-content/uploads/2011/04/page-admin-bar.png" alt="Wordpress Page on Admin Bar" width="161" height="142" /></a>
<p class="wp-caption-text">A Page is a Post</p>
</div>
<p>and select an item on the left sidebar. In this case we are going to choose Pages. Select the top Pages and the screen of all your  Pages will be displayed.</p>
<h2>URL Will Show the Way</h2>
<p>Look up at the URL Address bar and you will see  something like below that ends with <strong>/edit.php?post_type=page</strong> . And you find out that really a page is a post type all along. Now, I am really confused. But, lets forget that and just soldier on.</p>
<div id="attachment_1256" class="wp-caption aligncenter" style="width: 495px"><a href="http://islandcolors.com/wp-content/uploads/2011/05/page-type-slug.png"><img class="size-full wp-image-1256" title="Post Type = Page" src="http://islandcolors.com/wp-content/uploads/2011/05/page-type-slug.png" alt="Post Type is Page" width="485" height="44" /></a>
<p class="wp-caption-text">Post Type equals Page</p>
</div>
<div class="sws_yellow_box sws_color_box" style="width:560px; border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_yellow_box_content sws_box_content" style="border-radius:7px; -moz-border-radius:7px; -webkit-border-radius:7px;">
<div class="sws_red_circle_close" OnClick="javascript:jQuery(this).parent().parent().slideUp();"></div>
<h2>Did You Know?</h2>
<p>That WordPress <strong>pages</strong>, <strong>menus</strong>, <strong>post</strong>, <strong>attachments</strong>, and  <strong>revisions</strong> are all Post or in WordPress parlance &#8216;<strong>built-in</strong>&#8216;  Custom Post Types. </p>
<p>Besides those Custom Post Types, there are the ones that <strong>you create</strong> or are created when some plugins are installed. </p>
<p>Its is confusing &#8211; at least for me.  Read more here about <a href="http://codex.wordpress.org/Post_Types">WordPress Post Type</a>s</p>
<p>For a good overview of how to define and add Custom Post Types to your WordPress installation read Justin Tadlock&#8217;s still excellent article <a title="Justin Tatdlock Custom Post Types" href="http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress" target="_blank">Custom Post Types in WordPress</a></p>
</div>
</div>
<h4>Will Not Work All the Time</h4>
<p>The above trick will not work every  time, especially with some plugins that create specialized <strong>CPT. </strong>There is no sure fire way to find out all the Slug names without having to either search through your plugin  or theme&#8217;s code.</p>
<p>Thanks to WordPress, there is an easy way  to accomplish this using  the function <a href="http://codex.wordpress.org/Function_Reference/get_post_types" target="_blank">get_post_types()</a>.</p>
<h5>We Need a Shortcode</h5>
<p>The <strong>Get Post Types</strong> function&#8217;s <strong>$args</strong> paramater which is optional, is an array of key value arguments that match against the post types. One of those parameters is &#8216;_builtin&#8217;. If it is a WordPress Custom Post the value is true. If it is a Custom Post then the value is false. We are going to use false to find all of the not built-in Custom Post.</p>
<p></p><pre class="crayon-plain-tag">&lt;?php get_post_types( $args, $output, $operator ) ?&gt;</pre><p></p>
<p> The shortcode is going to be called <strong></p>
 [ postslugs ] <p> </strong>. It has one paramater custom=&#8217;yes&#8217;  or custom=&#8217;no&#8217;. When custom is yes only the non-Wordpress Custom Post slugs will be displayed. When custom is no only the &#8216;built-in&#8217; WordPress Custom Post slugs will be shown.</p>
<p>Copy the following into your function.php file after the </p>
 <?php <p> </p>
<p></p><pre class="crayon-plain-tag">function get_custom_post_slugs($att, $content= null) {
	extract(shortcode_atts(array(
		'custom' =&gt; 'no'
	), $att));

if (strtolower($custom) =='yes')
	{ // Explicity assigning value to array
		$args['_builtin'] = false; 
	}
	       else
	{
                $args['_builtin'] = true;
        }

$post_types = get_post_types($args,'names'); 
	
	foreach ($post_types as $post_type ) 
        { //build the array of custom post slugs
 		$listTypes[] = '&lt;li&gt;'. $post_type. '&lt;/li&gt;';
        }
	return &quot;\n&quot; . '&lt;ol&gt;' .implode( &quot;\n&quot;, $listTypes ). '&lt;/ol&gt;' . &quot;\n&quot;;

}
add_shortcode('postslugs', 'get_custom_post_slugs');</pre><p></p>
<h5>The Hard Part is Over</h5>
<p>After copying the above code into your function.php file and saving it. Create a draft Post or Page and insert the shortcode <strong></p>
  [ postslugs ] <p>.</strong>Next  preview the Post or Page and you should have an ordered list of all your registered Custom Post Type slugs &#8211; including the WordPress built-in ones.</p>
<p>Now with the Custom Post slug names   you can add Striking Theme&#8217;s great <a title="Striking Theme – Add a Meta Box to Custom Post" href="http://islandcolors.com/striking-theme-add-meta-box-to-custom-post/">Shortcode Generator metabox</a> to all your Custom Post Types.</p>
<div class="divider_top"><a href="#">Top</a></div>
<h3>Thanks To:</h3>
<p>photos by <a href="https://profiles.google.com/philippe.dermine/photos" target="_blank">Philippe Dermine</a></p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/get-the-custom-post-type-slug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quote Format Post</title>
		<link>http://islandcolors.com/quote-format-post/</link>
		<comments>http://islandcolors.com/quote-format-post/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 11:50:58 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Format Previews]]></category>
		<category><![CDATA[Quote]]></category>
		<category><![CDATA[Text]]></category>

		<guid isPermaLink="false">http://demo.wpbandit.com/peak/?p=56</guid>
		<description><![CDATA[<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id ligula porta felis euismod semper. Donec ullamcorper nulla non metus auctor fringilla. Nullam quis risus eget.</p>
 ]]></description>
			<content:encoded><![CDATA[<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id ligula porta felis euismod semper. Donec ullamcorper nulla non metus auctor fringilla. Nullam quis risus eget.</p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/quote-format-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>YouTube Video</title>
		<link>http://islandcolors.com/youtube-video/</link>
		<comments>http://islandcolors.com/youtube-video/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 12:56:13 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Format Previews]]></category>

		<guid isPermaLink="false">http://demo.wpbandit.com/peak/?p=449</guid>
		<description><![CDATA[<p>This is a test of a youtube video included by adding a link to the custom field.</p>
 ]]></description>
			<content:encoded><![CDATA[<p>This is a test of a youtube video included by adding a link to the custom field. </p>
]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/youtube-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Albert Einstein Quote</title>
		<link>http://islandcolors.com/albert-einstein-quote/</link>
		<comments>http://islandcolors.com/albert-einstein-quote/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 11:00:44 +0000</pubDate>
		<dc:creator>Rvka</dc:creator>
				<category><![CDATA[Mixed]]></category>

		<guid isPermaLink="false">http://demo.wpbandit.com/peak/?p=453</guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[ ]]></content:encoded>
			<wfw:commentRss>http://islandcolors.com/albert-einstein-quote/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Object Caching 2667/2968 objects using apc

Served from: islandcolors.com @ 2012-05-21 04:15:50 -->
