<?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>RozaniGhaniWordPress | RozaniGhani</title>
	<atom:link href="http://rozanighani.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://rozanighani.com</link>
	<description>Anything Is Possible</description>
	<lastBuildDate>Sun, 29 Apr 2012 13:08:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Penggunaan Templatepath dan Get Template Part</title>
		<link>http://rozanighani.com/2011/02/penggunaan-templatepath-dan-get-template-part/</link>
		<comments>http://rozanighani.com/2011/02/penggunaan-templatepath-dan-get-template-part/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 13:30:03 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1267</guid>
		<description><![CDATA[Salam 1Malaysia. Penggunaan kod TEMPLATEPATH dan get_template_part adalah sama iaitu mengloadkan atau menyertakan satu file php di dalam satu file php yang lain yang berada di dalam folder yang sama. Biasanya kedua-kedua kod ini digunakan di dalam sebuah theme WordPress. &#8230; <a href="http://rozanighani.com/2011/02/penggunaan-templatepath-dan-get-template-part/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia.</p>
<p style="text-align: justify;">Penggunaan kod <em>TEMPLATEPATH</em> dan <em>get_template_part</em> adalah sama iaitu mengloadkan atau menyertakan satu file php di dalam satu file php yang lain yang berada di dalam folder yang sama. Biasanya kedua-kedua kod ini digunakan di dalam sebuah theme WordPress.</p>
<p style="text-align: justify;">Biasanya <em>TEMPLATEPATH</em> digunakan untuk theme option dan kurang sesuai untuk digunakan diletakkan ke dalam theme secara direct. Sebabnya TEMPLATEPATH digunakan secara force, sekiranya file php itu gagal loading maka error 404 akan dihasilkan.</p>
<p style="text-align: justify;"><em>Get_template_part</em> adalah coding terbaru sejak WordPress 3.0 yang digunakan secara besar-besaran dalam Twenty Ten Theme. Salah satu kelebihannya kita mampu memanggil file php yang mengandungi conditional tag loop seperti loop.php malah kita mampu apply kod <em>get_template_part</em> ke dalam child theme untuk memanggil child loop.php seperti loop-index.php, loop-category.php dan sebagainya.</p>
<p style="text-align: justify;">Bagi saya, kod <em>get_template_part</em> memang best. Kod ini diloadkan secara parallel atau synchronous (serentak), bagus untuk loading page. Jika file yang diload gagal dipaparkan atau gagal dipanggil oleh server, page tersebut tidak akan memaparkan error 404 sebalik jadi page kosong berwarna putih seperti kertas A4.</p>
<p style="text-align: justify;"><a href="nik_consult@yahoo.com" target="_blank">Nik</a> ada bagi saya satu <a href="http://rozanighani.com/2011/01/release-wordpress-theme-twenty-ten-alternative-sidebar-theme/#comment-679" target="_blank">rujukan</a> yang agak baik dan saya akan tunjukkan rujukan itu sebagai contoh.</p>
<p style="text-align: justify;">Berdasarkan rujukan itu, saya simplify kod itu jadi seperti di bawah. Kod di bawah ini menggunakan kod <em>TEMPLATEPATH</em>.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php include (TEMPLATEPATH . '/sidebar1.php'); ?&gt;
&lt;?php include (TEMPLATEPATH . '/sidebar2.php'); ?&gt;
</pre>
<p style="text-align: justify;">Berdasarkan kod tadi, saya ubah kod tersebut mengikut kod <em>get_template_part</em>.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php get_template_part('sidebar1.php'); ?&gt;
&lt;?php get_template_part('sidebar2.php'); ?&gt;
</pre>
<p style="text-align: justify;">Harap dapat membantu. <img src='http://rozanighani.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;">Rujukan: <a href="http://rozanighani.com/2011/01/how-does-get_template_part-works-in-twenty-ten-theme/" target="_blank">How Does get_template_part Works In Twenty Ten Theme</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/02/penggunaan-templatepath-dan-get-template-part/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Tutorial Membuat Header Twenty Ten Theme Sebagai Link Ke Home</title>
		<link>http://rozanighani.com/2011/02/tutorial-membuat-header-twenty-ten-theme-sebagai-link-ke-home/</link>
		<comments>http://rozanighani.com/2011/02/tutorial-membuat-header-twenty-ten-theme-sebagai-link-ke-home/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 09:01:20 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Twenty Ten Theme]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1227</guid>
		<description><![CDATA[Salam 1Malaysia. Ini adalah respond kepada Madlut dari entrinya Tutorial Twenty Ten : Menjadikan Header Sebagai Link Homepage. Coding Bahagian A Ini adalah code yang mengandungi coding header di dalam Twenty Ten Theme. Perhatikan &#60;!&#8211;?php endif ?&#8211;&#62; . Ini adalah &#8230; <a href="http://rozanighani.com/2011/02/tutorial-membuat-header-twenty-ten-theme-sebagai-link-ke-home/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia.</p>
<p>Ini adalah respond kepada <a href="http://www.madlut.com/" target="_blank">Madlut</a> dari entrinya <a rel="follow" href="http://www.madlut.com/2011/02/tutorial/tutorial-twenty-ten-menjadikan-header-sebagai-link-hompage/" target="_blank">Tutorial Twenty Ten : Menjadikan Header Sebagai Link Homepage</a>.</p>
<p><strong><span style="text-decoration: underline;">Coding Bahagian A</span></strong></p>
<p>Ini adalah code yang mengandungi coding header di dalam Twenty Ten Theme.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
else : ?&gt;
&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Perhatikan <span style="color: #ff0000;">&lt;!&#8211;?php endif ?&#8211;&gt;</span> . Ini adalah code fallback bagi sesuatu function dibuat. Tanpa code ini, coding akan break dan theme akan gagal berfungsi.</p>
<p><span style="text-decoration: underline;">Ceraian Coding Bahagian A Lebih Mendalam</span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
</pre>
<p>Coding di atas ini menyatakan condition di mana gambar thumbnail (Diset melalui Featured Image ketika membuat post/entry) akan mengantikan gambar header pada homepage. Gambar thumbnail akan dipaparkan pada halaman single.php atau page.php. Coding di atas berakhir boleh diakhiri <span style="color: #ff0000;">endif</span> tetapi coding di atas diakhiri <span style="color: #ff0000;">else:</span> yang bermaksud sekiranya coding di atas ini gagal, wordpress akan memproses coding yang berada selepas else: dan coding sebelum endif. Coding di bawah ini adalah coding di antara else: dan endif:</p>
<pre class="brush: php; title: ; notranslate">

&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
</pre>
<p>Coding ini pula adalah coding yang memproses image header yang sering kita lihat pada setiap halaman page dalam Twenty Ten Theme. Image header dipilih melalui paparan Header Image pada panel Appearance.</p>
<p><strong><span style="text-decoration: underline;">Coding Bahagian B</span></strong></p>
<p>Untuk membuat header sebagai header yang clickable yang boleh terus link ke homepage, saya akan gunakan coding yang sedia ada dalam header.php Twenty Ten Theme.</p>
<pre class="brush: php; title: ; notranslate">&lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;</pre>
<p><span style="color: #ff0000;">&lt;?php bloginfo( &#8216;name&#8217; ); ?&gt;</span> dalam Coding Bahagian B akan digantikan dengan Coding Bahagian A tetapi tidak semudah itu. Akan tetapi, kita akan gantikan dengan Ceraian Coding Bahagian A.</p>
<p><strong><span style="text-decoration: underline;">Untuk Coding Pertama Ceraian Bahagian A</span></strong></p>
<p>Kita perlu berhati-hati untuk menyumbat Coding Bahagian B ke dalam Coding Pertama Ceraian Bahagian A supaya coding berfungsi. Memandangkan coding ini adalah conditional tag, kita akan letak pemula tag &lt;a&gt; selepas if (is_singular &amp;&amp; &#8230;..): . Hasil akhir jadi seperti ini.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image! ?&gt;
&lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;
&lt;?php echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );?&gt;
&lt;/a&gt;
</pre>
<p><strong><span style="text-decoration: underline;">Untuk Coding Kedua Ceraian Coding A</span></strong></p>
<p>Cara ini lebih mudah berbanding sebelum ini, cuma kita perlu berhati-hati dengan conditional tag iaitu else: dan endif. Coding berakhir seperti ini.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php else : ?&gt;
&lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;
&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Kita sudah siap edit semuanya. Kita refresh balik coding asal dan lihat hasil akhir.</p>
<p><span style="color: #ff0000;"><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Coding Sebelum Edit</span></span></strong></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
else : ?&gt;
&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
&lt;?php endif; ?&gt;
</pre>
<p><strong><span style="text-decoration: underline;">Hasil Akhir</span></strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &amp;&amp;
has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image! ?&gt;
&lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;
&lt;?php echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );?&gt;
 &lt;/a&gt;
&lt;?php else : ?&gt;
&lt;a href=&quot;&lt;?php echo home_url( '/' ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;
&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Sekian sudah tutorial Membuat Header Twenty Ten Theme Sebagai Link ke Homepage. Harap maaf kalau tutorial ini terlalu panjang. Saya sudah pastikan coding ini berfungsi dan ada fungsi fallback.<br />
Akan datang saya akan buat tutorial header dengan hover image effects. <img src='http://rozanighani.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/02/tutorial-membuat-header-twenty-ten-theme-sebagai-link-ke-home/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Disable SyntaxHighlighter Evolved Plugin In  Twenty Ten Theme</title>
		<link>http://rozanighani.com/2011/02/disable-syntaxhighlighter-evolved-plugin-in-twenty-ten-theme/</link>
		<comments>http://rozanighani.com/2011/02/disable-syntaxhighlighter-evolved-plugin-in-twenty-ten-theme/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 06:20:15 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Disable Plugin]]></category>
		<category><![CDATA[Syntax Highlighter]]></category>
		<category><![CDATA[Syntax Highlighter Evolved]]></category>
		<category><![CDATA[Twenty Ten Theme]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1242</guid>
		<description><![CDATA[Salam and hi. Actually, I&#8217;m a big fan of SyntaxHighlighter Evolved Plugin. I had used this plugin quite long, about a year ago.  I see that this plugin loads on every page that I used, so I don&#8217;t want this &#8230; <a href="http://rozanighani.com/2011/02/disable-syntaxhighlighter-evolved-plugin-in-twenty-ten-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam and hi.</p>
<p style="text-align: justify;">Actually, I&#8217;m a big fan of <a title="SyntaxHighlighter Evolved Plugin" href="http://wordpress.org/extend/plugins/syntaxhighlighter/" target="_blank">SyntaxHighlighter Evolved Plugin</a>. I had used this plugin quite long, about a year ago.  I see that this plugin loads on every page that I used, so I don&#8217;t want this thing happen. Hence, I want this plugin only loads on single.php. I&#8217;m using <a title="SyntaxHighlighter Evolved Plugin" href="http://wordpress.org/extend/themes/twentyten" target="_blank">Twenty Ten Theme</a>, so I will show you how to disable plugin so that this plugin only loads in single.php</p>
<p><strong>A Flashback&#8230;.</strong></p>
<p style="text-align: justify;">I found this code from <a title="[Plugin: SyntaxHighlighter Evolved] Script Loads When Not Needed" href="http://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-script-loads-when-not-needed" target="_blank">[Plugin: SyntaxHighlighter Evolved] Script Loads When Not Needed</a>. This code was recommended by its plugin developer, <a title="Alex M. (Viper007Bond)" href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/" target="_blank">Alex M. (Viper007Bond)</a>.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if ( is_home() ) {
	global $SyntaxHighlighter;
	$SyntaxHighlighter-&gt;usedbrushes = array();
}
?&gt;
</pre>
<p style="text-align: justify;">So, I test out this code in Twenty Ten Theme, I put this code in Twenty Ten Theme&#8217;s <span style="color: #000000;"><em>footer.php</em></span> just before <span style="color: #ff0000;">wp_footer</span>. But first, let see the wp_footer code in <span style="color: #000000;"><em>footer.php</em></span>.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
	/* Always have wp_footer() just before the closing &lt;/body&gt;
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?&gt;
</pre>
<p style="text-align: justify;">Based on the code above, there is comment tag that recommend to put code inside there. By omitting <span style="color: #ff0000;">&lt;?php</span> and <span style="color: #ff0000;">?&gt;</span> tags, I put in the codes and the codes become like this.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
	/* Always have wp_footer() just before the closing &lt;/body&gt;
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */
if ( is_home() ) {
	global $SyntaxHighlighter;
	$SyntaxHighlighter-&gt;usedbrushes = array();
}
	wp_footer();
?&gt;
</pre>
<p style="text-align: justify;">I test it out and its works. But, in Twenty Ten Theme, that code only works in your homepage, that means Syntax Evolved Plugin is only disable in homepage page. I also try on other pages suchs page.php and etc. <strong>Unfortunately</strong>, this plugin also loads in <em>tag page (tag.php) </em>and also <em>author page (author.php)</em>.</p>
<p>So the finalize code should be like this.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
	/* Always have wp_footer() just before the closing &lt;/body&gt;
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */
if ( is_home() || is_tag() ||is_author ()) {
	global $SyntaxHighlighter;
	$SyntaxHighlighter-&gt;usedbrushes = array();
}
	wp_footer();
?&gt;
</pre>
<p>Enjoy your codings and have fun! <img src='http://rozanighani.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/02/disable-syntaxhighlighter-evolved-plugin-in-twenty-ten-theme/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>2010 Weaver Dah Jadi Weaver</title>
		<link>http://rozanighani.com/2011/02/2010-weaver-dah-jadi-weaver/</link>
		<comments>http://rozanighani.com/2011/02/2010-weaver-dah-jadi-weaver/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 02:04:06 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Twenty Ten]]></category>
		<category><![CDATA[Weaver]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1217</guid>
		<description><![CDATA[Salam 1Malaysia, Ada sesiapa pernah guna theme Twenty Ten Weaver atau 2010 Weaver? Sebenarnya nama theme ini sama sahaja cuma bezanya Twenty Ten Weaver dihostkan di WpWeaver.info manakala 2010 Weaver dihostkan di WordPress Theme Directory. Bagi mereka yang tidak mengetahui &#8230; <a href="http://rozanighani.com/2011/02/2010-weaver-dah-jadi-weaver/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia,</p>
<p style="text-align: justify;">Ada sesiapa pernah guna theme Twenty Ten Weaver atau 2010 Weaver? Sebenarnya nama theme ini sama sahaja cuma bezanya Twenty Ten Weaver dihostkan di <a href="http://wpweaver.info/" target="_blank">WpWeaver.info</a> manakala 2010 Weaver dihostkan di <a href="http://wordpress.org/extend/themes/2010-weaver" target="_blank">WordPress Theme Directory</a>.</p>
<p style="text-align: justify;">Bagi mereka yang tidak mengetahui Twenty Ten Weaver ini rupanya macam mana, rupa design theme ini memang sebijik macam kat WpWeaver.info. Twenty Ten Weaver theme ni tak banyak beza <a href="http://wordpress.org/extend/themes/twentyten" target="_blank">Twenty Ten theme</a> dari segi design tapi dari segi function, Twenty Ten Weaver lebih advance dari Twenty Ten.</p>
<p style="text-align: justify;">Sekarang ni, <a href="http://wpweaver.info/2010-weaver-to-become-just-weaver/" target="_blank">Twenty Ten Weaver telah ditukarkan nama kepada Weaver</a>. RG rasa pun bagus gak sebab bila selalu bukak forum kat WordPress.org cari pasal Twenty Ten theme, Twenty Ten Weaver yang keluar. Satu lagi, bila Weaver dah tukar nama, hilanglah rasa salah sangka newbie yang selalu ingat Twenty Ten Weaver tu theme default WordPress.</p>
<p><strong><span style="text-decoration: underline;">Pros</span></strong></p>
<ul>
<li>Weaver bagus untuk newbie dan tidak perlukan kepakaran yang tinggi.</li>
<li>Function Weaver sama seperti Twenty Ten Theme malah lebih advance dari Twenty Ten Theme dari segi pemilihan sub theme.</li>
<li>Banyak option seperti memasukkan nilai color, tukar jenis font, tukar layout column.</li>
<li>Weaver dianggap theme yang advanced sebagai theme yang percuma.</li>
</ul>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Cons</span></span></strong></p>
<ul>
<li>Weaver kurang sesuai untuk pengguna advance yang selalu inginkan modification yang canggih.</li>
<li>Weaver kurang sesuai untuk optimization seperti speed optimization sebab file Weaver terlampau banyak.</li>
<li>Size style.css yang agak besar iaitu 29kb kurang sesuai. Style.css kalau kurang dari 20kb lebih bagus.</li>
<li>Weaver ada banyak function tetapi tiada function SEO. Agak menghampakan tetapi inilah realiti theme percuma.</li>
<li>Advanced Options Page mempunyai banyak sangat teks dan agak crowded.</li>
<li>Pemilihan warna secara manual memerlukan pengalaman dan penyelidikan mengenai warna supaya pemilihan warna lebih teratur dan kemas.</li>
<li>Disebabkan Weaver mempunyai banyak option, database WordPress seperti WP_Options akan jadi lebih berat apabila selalu tukar nilai color dan font. Setiap perubahan nilai akan disave ke dalam table database WP_Options.</li>
</ul>
<p><strong><span style="text-decoration: underline;">Konklusi</span></strong></p>
<p>Twenty Ten Weaver atau 2010 Weaver telah bertukar nama kepada Weaver. Weaver didapati di <a href="http://wordpress.org/extend/themes/weaver" target="_blank">WordPress Theme Directory (Weaver)</a>.</p>
<p>Weaver atau Twenty Ten lebih bagus? Terpulanglah pada diri masing-masing.</p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/02/2010-weaver-dah-jadi-weaver/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Cara Kasi Widget Title 2010 Ada Style</title>
		<link>http://rozanighani.com/2011/01/cara-kasi-widget-title-2010-ada-style/</link>
		<comments>http://rozanighani.com/2011/01/cara-kasi-widget-title-2010-ada-style/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 07:08:12 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1191</guid>
		<description><![CDATA[Salam 1Malaysia, Atas permintaan Syahril Hafiz, aku buat tutor untuk kasi widget title ada style bold dan align center. Buka style.css dan tambah kod di bawah. Untuk boldkan Widget Title Untuk centerkan Widget Title Overall Widget Title siap dicustomize Harap &#8230; <a href="http://rozanighani.com/2011/01/cara-kasi-widget-title-2010-ada-style/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia,</p>
<p>Atas permintaan <a href="http://syahrilhafiz.com/blog/aku-tak-seperti-dahulu.html" target="_blank">Syahril Hafiz</a>, aku buat tutor untuk kasi widget title ada style bold dan align center.</p>
<p>Buka style.css dan tambah kod di bawah.</p>
<p>Untuk boldkan Widget Title</p>
<pre class="brush: css; title: ; notranslate">
.widget-title {
font-weight: bold;
}
</pre>
<p>Untuk centerkan Widget Title</p>
<pre class="brush: css; title: ; notranslate">
.widget-title {
text-align: center;
}
</pre>
<p>Overall Widget Title siap dicustomize</p>
<pre class="brush: css; title: ; notranslate">
.widget-title {
font-weight: bold;
text-align: center;
}
</pre>
<p>Harap dapat membantu. <img src='http://rozanighani.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/cara-kasi-widget-title-2010-ada-style/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Ayat Spam Bahasa Melayu 2011</title>
		<link>http://rozanighani.com/2011/01/ayat-spam-bahasa-melayu-2011/</link>
		<comments>http://rozanighani.com/2011/01/ayat-spam-bahasa-melayu-2011/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 04:51:59 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1186</guid>
		<description><![CDATA[Salam 1Malaysia, Kali ni aku dah tak pakai Akismet, cuma guna GASP je. Untuk pertama kali tahun 2011, aku jumpa ayat spam dalam bahasa melayu. Ini ayatnya. Tak pernah aku buat sebelum ni sebenarnya aku baru sahaja install plugin wordpress &#8230; <a href="http://rozanighani.com/2011/01/ayat-spam-bahasa-melayu-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia,</p>
<p>Kali ni aku dah tak pakai Akismet, cuma guna GASP je. Untuk pertama kali tahun 2011, aku jumpa ayat spam dalam bahasa melayu. Ini ayatnya.</p>
<blockquote><p>Tak pernah aku buat sebelum ni sebenarnya aku baru sahaja install plugin wordpress untuk memaparkan waktu berbuka puasa dan imsak buatan malaysia yang di hasilkan oleh .. Sebenarnya plugin ini aku dapat tahu melalui yang telah menulis berkenaan plugin ini. Bersempena bulan ramadhan yang bakal menjelma dalam beberapa hari lagi dan sebagai umat islam aku ingin mengucapkan selamat menyambut bulan ramdhan al mubarak dan plugin ini akan beroperasi selama sebulan di blog ini bagi memudahkan aku dan pengunjung blog yang berada di sekitar daerah tempat tinggal aku.Apa yang sangat dibanggakan ialah plugin ini merupakan plugin buatan anak malaysia yang paling geek istilah mr kay selalu guna dalam blog dia kalau berbicara mengenai IT.</p></blockquote>
<p>Jadi, aku check macam biasa kat google. Ni <a href="http://www.google.com.my/search?hl=en&amp;biw=1280&amp;bih=687&amp;q=Tak+pernah+aku+buat+sebelum+ni+sebenarnya+aku+baru+sahaja+install+plugin+wordpress+untuk+memaparkan+waktu+berbuka+puasa+dan+imsak+buatan+malaysia+yang+di+hasilkan+oleh+..+Sebenarnya+plugin+ini+aku+dapat+tahu+melalui+yang+telah+menulis+berkenaan+plugin+ini.+Bersempena+bulan+ramadhan+yang+bakal+menjelma+dalam+beberapa+hari+lagi+dan+sebagai+umat+islam+aku+ingin+mengucapkan+selamat+menyambut+bulan+ramdhan+al+mubarak+dan+plugin+ini+akan+beroperasi+selama+sebulan+di+blog+ini+bagi+memudahkan+aku+dan+pengunjung+blog+yang+berada+di+sekitar+daerah+tempat+tinggal+aku.Apa+yang+sangat+dibanggakan+ialah+plugin+ini+merupakan+plugin+buatan+anak+malaysia+yang+paling+geek+istilah+mr+kay+selalu+guna+dalam+blog+dia+kalau+berbicara+mengenai+IT.&amp;btnG=Search&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=" target="_blank">link search google</a> yang aku dah siap buat.</p>
<p>Rujukan :<a href="http://rozanighani.com/2010/07/20/cara-semak-komen-spam-guna-google-video/" target="_blank"> http://rozanighani.com/2010/07/20/cara-semak-komen-spam-guna-google-video/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/ayat-spam-bahasa-melayu-2011/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How Does get_template_part Works In Twenty Ten Theme</title>
		<link>http://rozanighani.com/2011/01/how-does-get_template_part-works-in-twenty-ten-theme/</link>
		<comments>http://rozanighani.com/2011/01/how-does-get_template_part-works-in-twenty-ten-theme/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 06:15:39 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1180</guid>
		<description><![CDATA[Salam and hi. Somehow I get to understand what is get_template_part codex in Twenty Ten Theme is about. I visualize how the code in the slide. Hope you have time to understand. Ciao. How does get template part works in &#8230; <a href="http://rozanighani.com/2011/01/how-does-get_template_part-works-in-twenty-ten-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam and hi.</p>
<p>Somehow I get to understand what is get_template_part codex in Twenty Ten Theme is about. I visualize how the code in the slide. Hope you have time to understand. Ciao.</p>
<div id="__ss_6678128" style="width: 425px;"><strong><a title="How does get template part works in twenty ten theme" href="http://www.slideshare.net/rozanighani/how-does-get-template-part-works-in-twenty-ten-theme">How does get template part works in twenty ten theme</a></strong><object id="__sse6678128" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=howdoesgettemplatepartworksintwentytentheme-110123234953-phpapp02&amp;stripped_title=how-does-get-template-part-works-in-twenty-ten-theme&amp;userName=rozanighani" /><param name="name" value="__sse6678128" /><param name="allowfullscreen" value="true" /><embed id="__sse6678128" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=howdoesgettemplatepartworksintwentytentheme-110123234953-phpapp02&amp;stripped_title=how-does-get-template-part-works-in-twenty-ten-theme&amp;userName=rozanighani" name="__sse6678128" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/rozanighani">mohd rozani abd ghani</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/how-does-get_template_part-works-in-twenty-ten-theme/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Editorial Calendar Memudahkan Pengurusan Post Seperti MS Outlook</title>
		<link>http://rozanighani.com/2011/01/editorial-calendar-memudahkan-pengurusan-post-sepert-ms-outlook/</link>
		<comments>http://rozanighani.com/2011/01/editorial-calendar-memudahkan-pengurusan-post-sepert-ms-outlook/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 16:29:14 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1173</guid>
		<description><![CDATA[Salam 1Malaysia. Korang pernah dengar Plugin Editorial Calendar tak? Plugin ni berfungsi untuk memaparkan post dalam bentuk calendar dalam admin option. Bagi sesiapa yang biasa guna Microsoft Outlook, mungkin korang dah biasa tengok susunan calendar dalam Outlook. Microsoft Outlook memaparkan &#8230; <a href="http://rozanighani.com/2011/01/editorial-calendar-memudahkan-pengurusan-post-sepert-ms-outlook/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam 1Malaysia.</p>
<p style="text-align: justify;">Korang pernah dengar Plugin <a href="http://wordpress.org/extend/plugins/editorial-calendar/" target="_blank">Editorial Calendar</a> tak? Plugin ni berfungsi untuk memaparkan post dalam bentuk calendar dalam admin option. Bagi sesiapa yang biasa guna Microsoft Outlook, mungkin korang dah biasa tengok susunan calendar dalam Outlook.</p>
<p style="text-align: justify;">Microsoft Outlook memaparkan calendar yang membolehkan kita meletakkan event atau meeting. Plugin Editorial Calendar sama fungsinya cuma bezanya plugin ni memaparkan entri yang dibuat dalam masa sebulan macam gambar kat bawah ni.</p>
<p style="text-align: justify;"><a href="http://rozanighani.com/wp-content/uploads/2011/01/calendar-post.jpg"><img class="size-medium wp-image-1175 alignnone" title="calendar-post" src="http://rozanighani.com/wp-content/uploads/2011/01/calendar-post-300x174.jpg" alt="" width="300" height="174" /></a></p>
<p style="text-align: justify;">Plugin ni aku rasa best untuk manage entri or buat drafting. Kalau plugin ni kalau dicadangkan masuk ke dalam wp-includes pun bagus gak. Tak perlu guna plugin ni lagi. Kalaulah plugin ni dapat check approve komen dalam calendar pun bagus gak tapi belum ada development.</p>
<p style="text-align: justify;"><a href="http://wordpress.org/extend/plugins/editorial-calendar/">http://wordpress.org/extend/plugins/editorial-calendar/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/editorial-calendar-memudahkan-pengurusan-post-sepert-ms-outlook/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How To Delete Custom Header Image In Twenty Ten Theme Permanently</title>
		<link>http://rozanighani.com/2011/01/how-to-delete-custom-header-image-in-twenty-ten-theme-permanently/</link>
		<comments>http://rozanighani.com/2011/01/how-to-delete-custom-header-image-in-twenty-ten-theme-permanently/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 16:24:02 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1120</guid>
		<description><![CDATA[Salam and hi, I would like to show how to delete custom header image in Twenty Ten Theme permanently. Requirements: You need to understand function.php carefully. (Nah? Its bullshit for newbie or noob, so you follow this tutorial carefully) * &#8230; <a href="http://rozanighani.com/2011/01/how-to-delete-custom-header-image-in-twenty-ten-theme-permanently/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam and hi,</p>
<p>I would like to show how to delete custom header image in Twenty Ten Theme permanently.</p>
<p>Requirements: You need to understand function.php carefully. (Nah? Its bullshit for newbie or noob, so you follow this tutorial carefully)</p>
<p>* Backup Twenty Ten Theme if you want to use custome header image again.</p>
<p>Intro<br />
We want to delete this Header function from the admin menu. Just like the image below.</p>
<p><a href="http://rozanighani.com/wp-content/uploads/2011/01/headeradmin.jpg"><img class="size-full wp-image-1121 alignnone" title="headeradmin" src="http://rozanighani.com/wp-content/uploads/2011/01/headeradmin.jpg" alt="" width="154" height="170" /></a></p>
<p>And become like this.</p>
<p><a href="http://rozanighani.com/wp-content/uploads/2011/01/noheaderadmin.jpg"><img class="size-full wp-image-1123 alignnone" title="noheaderadmin" src="http://rozanighani.com/wp-content/uploads/2011/01/noheaderadmin.jpg" alt="" width="154" height="140" /></a></p>
<p>So you view your blog, it become something like this.</p>
<p><a href="http://rozanighani.com/wp-content/uploads/2011/01/noheader.jpg"><img class="alignnone size-medium wp-image-1124" title="noheader" src="http://rozanighani.com/wp-content/uploads/2011/01/noheader-300x37.jpg" alt="" width="300" height="37" /></a></p>
<p>Ok. Lets start.</p>
<p>1. Locate functions.php in your Twenty Ten Theme.</p>
<p>2. Find these codes and delete them. This is the part 1.</p>
<pre class="brush: php; title: ; notranslate">
	// Your changeable header business starts here
	define( 'HEADER_TEXTCOLOR', '' );
	// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
	define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );

	// The height and width of your custom header. You can hook into the theme's own filters to change these values.
	// Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values.
	define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );

	// We'll be using post thumbnails for custom header images on posts and pages.
	// We want them to be 940 pixels wide by 198 pixels tall.
	// Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
	set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );

	// Don't support text inside the header image.
	define( 'NO_HEADER_TEXT', true );

	// Add a way for the custom header to be styled in the admin panel that controls
	// custom headers. See twentyten_admin_header_style(), below.
	add_custom_image_header( '', 'twentyten_admin_header_style' );

	// ... and thus ends the changeable header business.

	// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
	register_default_headers( array(
		'berries' =&gt; array(
			'url' =&gt; '%s/images/headers/berries.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/berries-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Berries', 'twentyten' )
		),
		'cherryblossom' =&gt; array(
			'url' =&gt; '%s/images/headers/cherryblossoms.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/cherryblossoms-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Cherry Blossoms', 'twentyten' )
		),
		'concave' =&gt; array(
			'url' =&gt; '%s/images/headers/concave.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/concave-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Concave', 'twentyten' )
		),
		'fern' =&gt; array(
			'url' =&gt; '%s/images/headers/fern.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/fern-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Fern', 'twentyten' )
		),
		'forestfloor' =&gt; array(
			'url' =&gt; '%s/images/headers/forestfloor.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/forestfloor-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Forest Floor', 'twentyten' )
		),
		'inkwell' =&gt; array(
			'url' =&gt; '%s/images/headers/inkwell.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/inkwell-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Inkwell', 'twentyten' )
		),
		'path' =&gt; array(
			'url' =&gt; '%s/images/headers/path.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/path-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Path', 'twentyten' )
		),
		'sunset' =&gt; array(
			'url' =&gt; '%s/images/headers/sunset.jpg',
			'thumbnail_url' =&gt; '%s/images/headers/sunset-thumbnail.jpg',
			/* translators: header image description */
			'description' =&gt; __( 'Sunset', 'twentyten' )
		)
</pre>
<p>3. Find these codes and delete them. This part 2 and the last part.</p>
<pre class="brush: php; title: ; notranslate">
if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
/**
 * Styles the header image displayed on the Appearance &gt; Header admin panel.
 *
 * Referenced via add_custom_image_header() in twentyten_setup().
 *
 * @since Twenty Ten 1.0
 */
function twentyten_admin_header_style() {
?&gt;
&lt;style type=&quot;text/css&quot;&gt;
/* Shows the same border as on front end */
#headimg {
	border-bottom: 1px solid #000;
	border-top: 4px solid #000;
}
/* If NO_HEADER_TEXT is false, you would style the text with these selectors:
	#headimg #name { }
	#headimg #desc { }
*/
&lt;/style&gt;
&lt;?php
}
endif;
</pre>
<p>4. Save your functions.php or update file.</p>
<p>5. Locate header.php in your Twenty Ten Theme.</p>
<p>6. Find these codes and delete them.</p>
<pre class="brush: php; title: ; notranslate">
				&lt;?php
					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
					if ( is_singular() &amp;&amp;
							has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'post-thumbnail' ) ) &amp;&amp;
							$image[1] &gt;= HEADER_IMAGE_WIDTH ) :
						// Houston, we have a new header image!
						echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
					else : ?&gt;
						&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;
					&lt;?php endif; ?&gt;
</pre>
<p>7. Save header.php or update file.</p>
<p>8. Finish! Simple huh?</p>
<p>* If you want the header to be function back, you need to download the original twenty ten theme from the WordPress.org</p>
<p>If you have any problems, please leave a comment below. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/how-to-delete-custom-header-image-in-twenty-ten-theme-permanently/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How To Show Excerpt In Twenty Ten Theme</title>
		<link>http://rozanighani.com/2011/01/how-to-show-excerpt-in-twenty-ten-theme/</link>
		<comments>http://rozanighani.com/2011/01/how-to-show-excerpt-in-twenty-ten-theme/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 16:00:59 +0000</pubDate>
		<dc:creator>RG</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[Excerpt]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://rozanighani.com/?p=1116</guid>
		<description><![CDATA[Salam and hi, I would like to show you how to show excerpt in Twenty Ten Theme. This tutorial does not require any activation of plugin. If you have any excerpt plugin, please disable. Please backup you theme if necessary. &#8230; <a href="http://rozanighani.com/2011/01/how-to-show-excerpt-in-twenty-ten-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Salam and hi,</p>
<p>I would like to show you how to show excerpt in Twenty Ten Theme. This tutorial does not require any activation of plugin. If you have any excerpt plugin, please disable. Please backup you theme if necessary.</p>
<p>1. Locate loop.php in Twenty Ten Theme folder.</p>
<p>2. Find this code below in loop.php.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php /* How to display all other posts. */ ?&gt;

	&lt;?php else : ?&gt;
		&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
			&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;

			&lt;div class=&quot;entry-meta&quot;&gt;
				&lt;?php twentyten_posted_on(); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-meta --&gt;

	&lt;?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?&gt;
			&lt;div class=&quot;entry-summary&quot;&gt;
				&lt;?php the_excerpt(); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-summary --&gt;
	&lt;?php else : ?&gt;
			&lt;div class=&quot;entry-content&quot;&gt;
				&lt;?php the_content( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
				&lt;?php wp_link_pages( array( 'before' =&gt; '&lt;div class=&quot;page-link&quot;&gt;' . __( 'Pages:', 'twentyten' ), 'after' =&gt; '&lt;/div&gt;' ) ); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-content --&gt;
	&lt;?php endif; ?&gt;
</pre>
<p>3. If you that code, you are in the right track. Look the code below. This code will show the excerpt in archive page and search page. (Note: excerpt is not activated in stage temporarily, excerpt will activate at step 6)</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?&gt;
</pre>
<p>4. Change that code into this code below. (Note: excerpt will be also visible at home page after proceed to step 5)</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if ( is_home() || is_archive() || is_search() ) : // Only display excerpts for archives and search. ?&gt;
</pre>
<p>5.  Save your loop.php or update file.</p>
<p>6. The finished should be like this.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php /* How to display all other posts. */ ?&gt;

	&lt;?php else : ?&gt;
		&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
			&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;

			&lt;div class=&quot;entry-meta&quot;&gt;
				&lt;?php twentyten_posted_on(); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-meta --&gt;

	&lt;?php if ( is_home() || is_archive() || is_search() ) : // Only display excerpts for archives and search. ?&gt;
			&lt;div class=&quot;entry-summary&quot;&gt;
				&lt;?php the_excerpt(); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-summary --&gt;
	&lt;?php else : ?&gt;
			&lt;div class=&quot;entry-content&quot;&gt;
				&lt;?php the_content( __( 'Continue reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;', 'twentyten' ) ); ?&gt;
				&lt;?php wp_link_pages( array( 'before' =&gt; '&lt;div class=&quot;page-link&quot;&gt;' . __( 'Pages:', 'twentyten' ), 'after' =&gt; '&lt;/div&gt;' ) ); ?&gt;
			&lt;/div&gt;&lt;!-- .entry-content --&gt;
	&lt;?php endif; ?&gt;
</pre>
<p>7. That&#8217;s all. If you have any problems, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://rozanighani.com/2011/01/how-to-show-excerpt-in-twenty-ten-theme/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

