<?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>Penguination Project &#187; wordpress</title>
	<atom:link href="http://penguinationproject.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://penguinationproject.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Oct 2009 19:51:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Editing default wordpress theme tutorial #2</title>
		<link>http://penguinationproject.com/editing-default-wordpress-theme-tutuorial-2</link>
		<comments>http://penguinationproject.com/editing-default-wordpress-theme-tutuorial-2#comments</comments>
		<pubDate>Sun, 14 Jun 2009 09:43:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To tips]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress design]]></category>

		<guid isPermaLink="false">http://penguinationproject.com/?p=165</guid>
		<description><![CDATA[Hello, we will continue default wordpress theme editing tutorial, in tutorial #1 we fixed default wordpress theme to enable sidebar showing in all posts and categories, and today you will learn how to add most recent video in your right sidebar , or somwhere else inside of your wordpress blog.  We will try to explain [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-166" style="margin: 5px;" title="code" src="http://penguinationproject.com/wp-content/uploads/2009/06/code-300x276.gif" alt="code" width="300" height="276" />Hello, we will continue default wordpress theme editing tutorial, in tutorial #1 we fixed default wordpress theme to enable sidebar showing in all posts and categories, and today you will learn how to add most recent video in your right sidebar , or somwhere else inside of your wordpress blog.  We will try to explain our best PHP code parts you should insert or edit, and we hope this will be the  good start in creating your own wordpress themes.</p>
<p>Please take a look at our example, of what are we going to create : <a href="http://penguinationproject.com/preview/" target="_blank">Here</a></p>
<p><strong>Let&#8217;s start coding : </strong></p>
<p>First create category &#8220;videos&#8221; and post at least one video from youtube or any other flash video.</p>
<p>Now we will need &#8220;video&#8221; category id before we will start PHP coding of our sidebar, login to your wp-admin, click on posts, categories , you will see categories list, click on created video category.</p>
<p>In your browser address field you will see something like that : http://penguinationproject.com/preview/wp-admin/categories.php?action=edit&amp;cat_ID=3</p>
<p>Category id number  is 3 (cat_ID=3).</p>
<p>Now when we know our category id , let&#8217;s start coding.</p>
<p>Click on appearance in your left admin menu, click edit , you will see files list on right menu. Click on sidebar.php</p>
<p>Find html code  <strong>&lt;div id=&#8221;sidebar&#8221; role=&#8221;complementary&#8221;&gt;</strong></p>
<p>After this code and before &lt;ul&gt; tag starts insert PHP code below , we commented inside of code where you should add your category id number.</p>
<pre><strong><cite>&lt;?php</cite> <span style="text-decoration: underline;">if</span> ( have_posts() ) : <cite>?&gt;</cite></strong>

// take a look at line below, &amp;cat=3 , change 3 to your category id.

<strong><cite>&lt;?php</cite> <a>$my_query</a> = <span style="text-decoration: underline;">new</span> WP_Query('showposts=1&amp;cat=3');

<span style="text-decoration: underline;">while</span> (<a>$my_query</a>-&gt;have_posts()) : <a>$my_query</a>-&gt;the_post();
  <a>$do_not_duplicate</a> = <a>$post</a>-&gt;ID;<cite>?&gt;</cite></strong>

<strong><cite>&lt;?php</cite>
<a>$id</a> =<a>$post</a>-&gt;ID;
<a>$the_content</a> =<a>
$wpdb</a>-&gt;get_var("SELECT post_content FROM <a>$wpdb</a>-&gt;posts WHERE ID = <a>$id</a> ");
<a>$pattern</a> = '!&lt;embed.*?src="(.*?)"!';

preg_match_all(<a>$pattern</a>, <a>$the_content</a>, <a>$matches</a>);
<a>$obj_src</a> = <a>$matches</a>['1'][0];
<cite>?&gt;</cite></strong>

<strong><cite>&lt;?php</cite> <span style="text-decoration: underline;">if</span>(<a>$obj_src</a> != '') 

{ 

<span style="text-decoration: underline;">echo</span> '<strong>&lt;b&gt;</strong>Latest Video<strong>&lt;/b&gt;</strong><strong>&lt;br&gt;</strong><strong>&lt;br&gt;</strong><strong>&lt;object width="160" height="120"&gt;
</strong><strong>&lt;param name="movie" value="'.<a>$obj_src.</a>'"&gt;</strong><strong>&lt;/param&gt;
</strong><strong>&lt;param name="allowFullScreen" value="<span style="text-decoration: underline;">true</span>"&gt;</strong><strong>&lt;/param&gt;
</strong><strong>&lt;param name="allowscriptaccess" value="always"&gt;</strong><strong>&lt;/param&gt;
</strong><strong>&lt;embed src="'.<a>$obj_src.</a>'" type="application/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="<span style="text-decoration: underline;">true</span>" width="160" height="120"&gt;</strong><strong>&lt;/embed&gt;
</strong><strong>&lt;/object&gt;</strong><strong>&lt;br&gt;</strong><strong>&lt;br&gt;</strong>'; 

}

<cite>?&gt;</cite></strong>
 <strong><cite>&lt;?php</cite> <span style="text-decoration: underline;">endwhile</span>; <cite>?&gt;</cite></strong>

<strong><cite>&lt;?php</cite> <span style="text-decoration: underline;">endif</span>; <cite>?&gt;</cite></strong></pre>
<p>Now save the file , go to your wordpress blog&#8217;s  homepage , You will see most recent video on your blogs sidebar .</p>
<p>From now once you are adding video in &#8220;video&#8221; category , it will automatically appear on your sidebar.</p>
<p>We will continue hacking default wordpress theme soon. And we wish you all the best ! Please leve comments.</p>
<p>Good luck.</p>
<p><em></em></p>
]]></content:encoded>
			<wfw:commentRss>http://penguinationproject.com/editing-default-wordpress-theme-tutuorial-2/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Editing default wordpress theme tutorial #1</title>
		<link>http://penguinationproject.com/editing-default-wordpress-theme-tutorial-1</link>
		<comments>http://penguinationproject.com/editing-default-wordpress-theme-tutorial-1#comments</comments>
		<pubDate>Sat, 13 Jun 2009 15:29:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://penguinationproject.com/?p=162</guid>
		<description><![CDATA[Today we will learn how to fix default kubrick wordpress template and making it double column in all blog categories.
As a default kubrick theme don&#8217;t shows sidebar when you are browsing into single post or attachement.
It could be fixed in a 2 minutes of our time. We also created preview for this tutorial : http://penguinationproject.com/preview/
You [...]]]></description>
			<content:encoded><![CDATA[<p>Today we will learn how to fix default kubrick wordpress template and making it double column in all blog categories.</p>
<p>As a default kubrick theme don&#8217;t shows sidebar when you are browsing into single post or attachement.</p>
<p>It could be fixed in a 2 minutes of our time. We also created preview for this tutorial : <a href="http://penguinationproject.com/preview/" target="_blank">http://penguinationproject.com/preview/</a></p>
<p>You can click on any post, sidebar will appear on single post.</p>
<p>So, let&#8217;s start :</p>
<p>login to wp-admin -&gt; appearance -&gt; editor.</p>
<p>You will need to edit two files in same way <em><strong>single.php</strong></em> and <strong><em>image.php</em></strong></p>
<p>Both files are edited in the same way,  find html code :</p>
<blockquote>
<pre>&lt;div id="content" <span style="text-decoration: underline;">class</span>="widecolumn" role="main"&gt;

Change it to 

&lt;div id="content" <span style="text-decoration: underline;">class</span>="narrowcolumn" role="main"&gt;

Scroll to the bottom of code and find code :

<strong><cite>&lt;?php</cite> get_footer(); <cite>?&gt;

</cite></strong><cite>add these line</cite><strong><cite>

</cite></strong>
<strong><cite>&lt;?php</cite> get_sidebar(); <cite>?&gt;</cite></strong>
<strong><cite>
</cite></strong></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://penguinationproject.com/editing-default-wordpress-theme-tutorial-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up your wordpress blog</title>
		<link>http://penguinationproject.com/speed-up-you-wordpress-blog</link>
		<comments>http://penguinationproject.com/speed-up-you-wordpress-blog#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:22:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To tips]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[speed up wordpress]]></category>
		<category><![CDATA[wordpress seo]]></category>

		<guid isPermaLink="false">http://penguinationproject.com/?p=117</guid>
		<description><![CDATA[
Hi there, you are probably very cool blogger with very popular blog ? How many visitors your wordpress blog reaches daily ? If there are 3-4 visitors per day, you are not cool blogger at all    This tutorial for blogs with at least 100 daily visitors from google and other resources.
So, what is [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-119" title="wordpress-speed" src="http://penguinationproject.com/wp-content/uploads/2009/06/wordpress-speed.jpg" alt="wordpress-speed" width="230" height="191" /></p>
<p>Hi there, you are probably very cool blogger with very popular blog ? How many visitors your wordpress blog reaches daily ? If there are 3-4 visitors per day, you are not cool blogger at all <img src='http://penguinationproject.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   This tutorial for blogs with at least 100 daily visitors from google and other resources.</p>
<p>So, what is it all about, how to speed up wordpress blog ?</p>
<p>I woke up one great North pole morning, turned up my penguin  laptop and opened penguination project website. Hm&#8230; it wasn&#8217;t opening,  I was waiting five or ten minutes until my wordpress blog opend the home page !!! Crap ! What&#8217;s wrong ? I&#8217;ve opened google and googled &#8220;wordpress blog slow&#8221;, yes it is ! Actually wordpress blog software is a very comprehencive application that loads slow natively when your blog reaches big amounts of traffic. Now everything is cool, I didn&#8217;t touch wordpress code myself and decided to figure out how to speed up my blog with existing plugins and methods.</p>
<p>There are some basic tips how to speed up your wordpress blog :</p>
<p>1. Never use godaddy Linux hosting, if you are using godaddy linux hosting , godaddy slow itself and it slows everything around. It is a good time to migrate your blog to some serious hosting company like <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=genetrix" target="_blank">hostgator hosting</a>. I think their <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=genetrix" target="_blank">basic hosting plan</a> is enough, it&#8217;s cheap and your website load times will be sky high !</p>
<p>2. Download and install <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">WP Super cache plugin </a>. This plugin enables pages storing in hosting memory and caching with explorer. And if your blog receives big amounts of traffic, your visitor will not see any sufficial changes in load times. This plugin is a genious one, and probably was made by genious penguin.</p>
<p>3. Images &#8211; Use light weight images in your posts, you can decrease the quality of high resolutional images by 60% with adobe photoshop or other software.</p>
<p>4. Use light weight wordpress templates with less graphics as much as possible.</p>
<p>We hope we helped you to speed up your wordpress blog, now i&#8217;s your turn .. leave comments and suggestions.</p>
<p>Good luck !</p>
]]></content:encoded>
			<wfw:commentRss>http://penguinationproject.com/speed-up-you-wordpress-blog/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->