<?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>RockFu.Net - Rock my life! &#187; wordpress</title>
	<atom:link href="http://www.rockfu.net/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rockfu.net/blog</link>
	<description>讓生活多一點浪漫</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:57:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>wordpress 開發插件必看文章</title>
		<link>http://www.rockfu.net/blog/2011/12/website/wordpress/wordpress-%e9%96%8b%e7%99%bc%e6%8f%92%e4%bb%b6%e5%bf%85%e7%9c%8b%e6%96%87%e7%ab%a0/</link>
		<comments>http://www.rockfu.net/blog/2011/12/website/wordpress/wordpress-%e9%96%8b%e7%99%bc%e6%8f%92%e4%bb%b6%e5%bf%85%e7%9c%8b%e6%96%87%e7%ab%a0/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 14:46:49 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[開發]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=2912</guid>
		<description><![CDATA[<br/>要開發wordpress 插件，當然少不了就是要熟悉一下wordpress的環境，然後再看開發說明啦。不過說明書實在太多了，如何入手都成問題，多數還是會參考別人的插件，再設計自己的插件。要上手，還是有些文章值得參考。 1. 教學：如何開發wordpress 插件 http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin 十分詳細 2.官方開發說明書 http://codex.wordpress.org/Developer_Documentation 3.官方提供插件開發資源 http://codex.wordpress.org/Plugin_Resources wordpress 有個十分重要的概念就是hook，因此要了解清楚。 插件開發有幾個十分重要，就喺action, filter,post,loop等，下面推薦收藏 http://codex.wordpress.org/Plugin_API http://codex.wordpress.org/The_Loop filter 介紹：http://codex.wordpress.org/Plugin_API/Filter_Reference 插入文章tag: http://codex.wordpress.org/Function_Reference/add_shortcode http://codex.wordpress.org/Function_Reference/add_filter]]></description>
			<content:encoded><![CDATA[<br/><p>要開發wordpress 插件，當然少不了就是要熟悉一下wordpress的環境，然後再看開發說明啦。不過說明書實在太多了，如何入手都成問題，多數還是會參考別人的插件，再設計自己的插件。要上手，還是有些文章值得參考。</p>
<p>1. 教學：如何開發wordpress 插件</p>
<p><a href="http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin">http://www.devlounge.net/extras/how-to-write-a-wordpress-plugin</a></p>
<p>十分詳細</p>
<p>2.官方開發說明書</p>
<p><a href="http://codex.wordpress.org/Developer_Documentation">http://codex.wordpress.org/Developer_Documentation</a></p>
<p>3.官方提供插件開發資源</p>
<p><a href="http://codex.wordpress.org/Plugin_Resources">http://codex.wordpress.org/Plugin_Resources</a></p>
<p>wordpress 有個十分重要的概念就是hook，因此要了解清楚。</p>
<p>插件開發有幾個十分重要，就喺action, filter,post,loop等，下面推薦收藏</p>
<p><a href="http://codex.wordpress.org/Plugin_API">http://codex.wordpress.org/Plugin_API</a></p>
<p><a href="http://codex.wordpress.org/The_Loop">http://codex.wordpress.org/The_Loop</a></p>
<p>filter 介紹：<a href="http://codex.wordpress.org/Plugin_API/Filter_Reference">http://codex.wordpress.org/Plugin_API/Filter_Reference</a></p>
<p>插入文章tag: <a href="http://codex.wordpress.org/Function_Reference/add_shortcode">http://codex.wordpress.org/Function_Reference/add_shortcode</a></p>
<p>http://codex.wordpress.org/Function_Reference/add_filter</p>
<div style="text-align:center;width:100%;"><div style="margin:0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-5237544886808594";
/* 300x250, 已建立 2009/2/20 */
google_ad_slot = "8308848689";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></div><img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=2912&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2011/12/website/wordpress/wordpress-%e9%96%8b%e7%99%bc%e6%8f%92%e4%bb%b6%e5%bf%85%e7%9c%8b%e6%96%87%e7%ab%a0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress wp ecommerce last product</title>
		<link>http://www.rockfu.net/blog/2011/08/website/wordpress/wordpress-wp-ecommerce/</link>
		<comments>http://www.rockfu.net/blog/2011/08/website/wordpress/wordpress-wp-ecommerce/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 08:53:31 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[last product]]></category>
		<category><![CDATA[wp ecommerce]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=2845</guid>
		<description><![CDATA[<br/>wordpress 設計theme 時需要在首頁取得wp ecommerce 的最新產品資料，可以用以下方法，輸出圖片，和title，網上找沒什麼資料，只好自己在widget 改一下那來用 global $wpdb; $args = wp_parse_args( (array)$args, array( &#039;number&#039; =&#62; 5 ) ); $number = 3; $image = true; $width = 150; $height = 150; $latest_products = get_posts( array( &#039;post_type&#039; =&#62; &#039;wpsc-product&#039;, &#039;numberposts&#039; =&#62; $number, &#8230; <a href="http://www.rockfu.net/blog/2011/08/website/wordpress/wordpress-wp-ecommerce/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<br/><p>wordpress 設計theme 時需要在首頁取得wp ecommerce 的最新產品資料，可以用以下方法，輸出圖片，和title，網上找沒什麼資料，只好自己在widget 改一下那來用</p>
<pre class="brush: php">
	global $wpdb;
	$args = wp_parse_args( (array)$args, array( &#039;number&#039; =&gt; 5 ) );

	$number  = 3;
	$image  = true;

		$width = 150;

		$height = 150;

	$latest_products = get_posts( array(
		&#039;post_type&#039;   =&gt; &#039;wpsc-product&#039;,
		&#039;numberposts&#039; =&gt; $number,
		&#039;orderby&#039;     =&gt; &#039;post_date&#039;,
		&#039;post_parent&#039; =&gt; 0,
		&#039;post_status&#039; =&gt; &#039;publish&#039;,
		&#039;order&#039;       =&gt; &#039;DESC&#039;
	) );
	$output = &#039;&#039;;

	if ( count( $latest_products ) &gt; 0 ) {
		$output .= &#039;&lt;ul class=&quot;wpsc-latest-products&quot;&gt;&#039;;
		foreach ( $latest_products as $latest_product ) {
			$output .= &#039;&lt;li class=&quot;wpsc-latest-product&quot;&gt;&#039;;
			// Thumbnails, if required
			if ($image) {
				$output .= &#039;&lt;div class=&quot;item_image&quot;&gt;&#039;;
				$output .= &#039;&lt;a href=&quot;&#039; . wpsc_product_url( $latest_product-&gt;ID, null ) . &#039;&quot;&gt;&#039;;
				$attached_images = (array)get_posts( array(
					&#039;post_type&#039;   =&gt; &#039;attachment&#039;,
					&#039;numberposts&#039; =&gt; 1,
					&#039;post_status&#039; =&gt; null,
					&#039;post_parent&#039; =&gt; $latest_product-&gt;ID,
					&#039;orderby&#039;     =&gt; &#039;menu_order&#039;,
					&#039;order&#039;       =&gt; &#039;ASC&#039;
				) );
				$attached_image = $attached_images[0];
				if ( $attached_image-&gt;ID &gt; 0 )
						$output .= &#039;&lt;img src=&quot;&#039; . wpsc_product_image( $attached_image-/&gt;ID, $width, $height ) . &#039;&quot; title=&quot;&#039; . $latest_product-&gt;post_title . &#039;&quot; alt=&quot;&#039; . $latest_product-&gt;post_title . &#039;&quot; /&gt;&#039;;
				else
					$output .=&#039;&lt;img class=&quot;no-image&quot; id=&quot;product_image_&#039;.wpsc_the_product_id().&#039;&quot; alt=&quot;No Image&quot; title=&quot;&#039;.wpsc_the_product_title().&#039;&quot; src=&quot;&#039;.WPSC_URL.&#039;/wpsc-theme/wpsc-images/noimage.png&quot; width=&quot;&#039; . $width . &#039;&quot; height=&quot;&#039; . $height . &#039;&quot; /&gt;&#039;;

				$output .= &#039;&lt;/a&gt;&#039;;
				$output .= &#039;&lt;/div&gt;&#039;;
			}
			// Link
			$output .= &#039;&lt;a href=&quot;&#039; . wpsc_product_url( $latest_product-&gt;ID, null ) . &#039;&quot; class=&quot;wpsc-product-title&quot;&gt;&#039;.stripslashes( $latest_product-&gt;post_title ).&#039;&lt;/a&gt;&#039;;
			$output .= &#039;&lt;/li&gt;&#039;;
		}
		$output .= &quot;&lt;/ul&gt;&quot;;
	}
	echo $output;
</pre>
<img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=2845&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2011/08/website/wordpress/wordpress-wp-ecommerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 判斷首頁</title>
		<link>http://www.rockfu.net/blog/2011/07/website/wordpress/wordpress-is-front-page/</link>
		<comments>http://www.rockfu.net/blog/2011/07/website/wordpress/wordpress-is-front-page/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 05:56:02 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[is front page]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=2821</guid>
		<description><![CDATA[<br/>wordpress theme 製作記錄 今日製作到sidebar 時，突然常用的is_front_page() 不能使用，於是改用了is_home() 代之，又正常了，沒有時間去查證，初步估計可能是因為設定了首頁為某指定頁面有關。]]></description>
			<content:encoded><![CDATA[<br/><p>wordpress theme 製作記錄</p>
<p>今日製作到sidebar 時，突然常用的is_front_page() 不能使用，於是改用了is_home() 代之，又正常了，沒有時間去查證，初步估計可能是因為設定了首頁為某指定頁面有關。</p>
<img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=2821&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2011/07/website/wordpress/wordpress-is-front-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 自定rss 內容</title>
		<link>http://www.rockfu.net/blog/2011/05/website/code/wordpress-diy-rss-feed/</link>
		<comments>http://www.rockfu.net/blog/2011/05/website/code/wordpress-diy-rss-feed/#comments</comments>
		<pubDate>Thu, 19 May 2011 15:09:08 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=2802</guid>
		<description><![CDATA[<br/>wordprss 可以選擇訂閱內容全部顯示或部分顯示，假如部分顯示，也許有些東西在底部推薦給讀者的看不到，這裡有個方法，在function 裡面加上一段 if ( !function_exists(&#039;custom_feed_footer&#039;) ){        function custom_feed_footer($content)         {                if(is_feed())                $content .= &#039;自定內容&#039;;              &#8230; <a href="http://www.rockfu.net/blog/2011/05/website/code/wordpress-diy-rss-feed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<br/><p>wordprss 可以選擇訂閱內容全部顯示或部分顯示，假如部分顯示，也許有些東西在底部推薦給讀者的看不到，這裡有個方法，在function 裡面加上一段</p>
<pre class="brush: php">

if ( !function_exists(&#039;custom_feed_footer&#039;) ){        function custom_feed_footer($content)         {                if(is_feed())                $content .= &#039;自定內容&#039;;                return $content;        }        add_filter(&#039;the_excerpt_rss&#039;, &#039;custom_feed_footer&#039;);        add_filter(&#039;the_content&#039;, &#039;custom_feed_footer&#039;);}
</pre>
<p>記錄一下，希望有用</p>
<p>來自：<a href="http://www.wordpress.la/custom-feed-bottom-content.html">http://www.wordpress.la/custom-feed-bottom-content.html</a></p>
<img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=2802&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2011/05/website/code/wordpress-diy-rss-feed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress 2.9 carmen</title>
		<link>http://www.rockfu.net/blog/2009/12/website/wordpress/wordpress-2-9-carmen/</link>
		<comments>http://www.rockfu.net/blog/2009/12/website/wordpress/wordpress-2-9-carmen/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 06:45:43 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=2130</guid>
		<description><![CDATA[<br/>wordpress 正式升級為2.9，新增了不少新功能： 1. 垃圾桶，文章刪除后不是直接刪除，而是暫時存放在垃圾桶，避免誤刪 2.內置相片編輯器，以後不用在本地編輯了 3. 插件批量更新 4.影片發布，這個我等了很久，現在影片發布只會顯示一條鏈接，郁悶 登入你的wordpress升級吧 來源http://wordpress.org/development/2009/12/wordpress-2-9/]]></description>
			<content:encoded><![CDATA[<br/><p>wordpress 正式升級為2.9，新增了不少新功能：</p>
<p>1. 垃圾桶，文章刪除后不是直接刪除，而是暫時存放在垃圾桶，避免誤刪</p>
<p>2.內置相片編輯器，以後不用在本地編輯了</p>
<p>3. 插件批量更新</p>
<p>4.影片發布，這個我等了很久，現在影片發布只會顯示一條鏈接，郁悶</p>
<p>登入你的wordpress升級吧</p>
<p>來源<a href="http://wordpress.org/development/2009/12/wordpress-2-9/" target="_blank">http://wordpress.org/development/2009/12/wordpress-2-9/</a></p>
<img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=2130&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2009/12/website/wordpress/wordpress-2-9-carmen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 2.8</title>
		<link>http://www.rockfu.net/blog/2009/06/website/wordpress/wordpress-28/</link>
		<comments>http://www.rockfu.net/blog/2009/06/website/wordpress/wordpress-28/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 09:54:44 +0000</pubDate>
		<dc:creator>rockfu</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress 2.8]]></category>

		<guid isPermaLink="false">http://www.rockfu.net/blog/?p=1674</guid>
		<description><![CDATA[<br/>wordpress 2.8 推出了,雖然我還沒時間升級,不過網上看到文章說速度變化不大,只是對開發人員比較有利.我也是在等待這個版本，差不多要改下主題了。 wordpress 2.8 比較有用的 網址 wordpress 2.8 codex wordpress 2.8 介紹 Widget API 建立 WordPress 2.8 and the body_class() Function wordpress 2.8 footer loading javascript 有時間再慢慢研究]]></description>
			<content:encoded><![CDATA[<br/><p>wordpress 2.8 推出了,雖然我還沒時間升級,不過網上看到文章說速度變化不大,只是對開發人員比較有利.我也是在等待這個版本，差不多要改下主題了。</p>
<p>wordpress 2.8 比較有用的 網址</p>
<p><a href="http://codex.wordpress.org/Version_2.8" target="_blank">wordpress 2.8 codex</a></p>
<p><a href="http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28" target="_blank">wordpress 2.8 介紹</a></p>
<p><a href="http://wpengineer.com/wordpress-built-a-widget/" target="_blank">Widget API 建立</a></p>
<p><a href="http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/" target="_blank">WordPress 2.8 and the body_class() Function</a></p>
<p><a href="http://lesterchan.net/wordpress/2009/01/26/loading-javascript-in-footer-in-wordpress-28/" target="_blank">wordpress 2.8 footer loading javascript</a></p>
<p>有時間再慢慢研究</p>
<img src="http://www.rockfu.net/blog/?ak_action=api_record_view&id=1674&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.rockfu.net/blog/2009/06/website/wordpress/wordpress-28/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

