<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>WordPress 彙整 - Harry&#039;s iBlog</title>
	<atom:link href="https://iblog.ph-wbc.com/category/teach/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://iblog.ph-wbc.com</link>
	<description>文章、教學分享，iPhone 相關</description>
	<lastBuildDate>Tue, 28 Mar 2017 14:35:04 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.3</generator>
	<item>
		<title>WordPress FB meta 改作者名稱</title>
		<link>https://iblog.ph-wbc.com/wordpress-fb-meta-name/</link>
					<comments>https://iblog.ph-wbc.com/wordpress-fb-meta-name/#respond</comments>
		
		<dc:creator><![CDATA[哈利]]></dc:creator>
		<pubDate>Sat, 30 Jul 2016 17:00:00 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[其他教學]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://iblog.ph-wbc.com/?p=908</guid>

					<description><![CDATA[<p>WordPress FB meta 改作者名稱 剛剛想到說因為長久以來分享到 FB 時候都是顯示由”網站名稱”上傳 後來</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-fb-meta-name/">WordPress FB meta 改作者名稱</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<h2>WordPress FB meta 改作者名稱</h2>
<p>剛剛想到說因為長久以來分享到 FB 時候都是顯示由”網站名稱”上傳</p>
<p>後來找了許多資料，發現貼上一句語法就可以解決這個問題</p>
<p>在 &lt;head&gt; 後面貼上以下語法</p>
<p>[code lang=&#8221;html&#8221;]&lt;meta content=&quot;個人FB網址&quot; property=&quot;og:author&quot;&gt;[/code]</p>
<p>然後記得清除快取…</p>
<p>也要到 FB 清除快取多點個幾下</p>
<p><a href="https://developers.facebook.com/tools/debug/" target="_blank" rel="nofollow">Debugger &#8211; Facebook for Developers</a></p>
<p>等到除錯完後顯示自己要的就是成功了 !!</p>
<p>如下圖，由張哈利上傳 !!! 成功 <img class="wlEmoticon wlEmoticon-openmouthedsmile" style="border-style: none;" src="https://i0.wp.com/img.ph-wbc.com/WordPress-FB-meta-_122D/wlEmoticon-openmouthedsmile.png?w=860&#038;ssl=1" alt="開懷大笑" data-recalc-dims="1" /></p>
<p><img loading="lazy" class="alignnone" style="display: inline;" title="WordPress FB meta 改作者名稱" src="https://i0.wp.com/img.ph-wbc.com/WordPress-FB-meta-_122D/_073116_012137_AM.jpg?resize=500%2C386&#038;ssl=1" alt="WordPress FB meta 改作者名稱" width="500" height="386" data-recalc-dims="1" /></p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-fb-meta-name/">WordPress FB meta 改作者名稱</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iblog.ph-wbc.com/wordpress-fb-meta-name/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Jetpack FB 分享修改 og:image</title>
		<link>https://iblog.ph-wbc.com/jetpack-fb-%e5%88%86%e4%ba%ab%e4%bf%ae%e6%94%b9-ogimage/</link>
					<comments>https://iblog.ph-wbc.com/jetpack-fb-%e5%88%86%e4%ba%ab%e4%bf%ae%e6%94%b9-ogimage/#comments</comments>
		
		<dc:creator><![CDATA[哈利]]></dc:creator>
		<pubDate>Mon, 02 Mar 2015 14:58:11 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://iblog.ph-wbc.com/?p=796</guid>

					<description><![CDATA[<p>很多人應該都有安裝 Jetpack &#8230; 因為使用很方便，只要安裝之後啟用，接著在後台打開就好了 但是有一個功</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/jetpack-fb-%e5%88%86%e4%ba%ab%e4%bf%ae%e6%94%b9-ogimage/">Jetpack FB 分享修改 og:image</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>很多人應該都有安裝 Jetpack &#8230;</p>
<p>因為使用很方便，只要安裝之後啟用，接著在後台打開就好了</p>
<p>但是有一個功能，分享&#8230;有些設定沒有那麼人性化</p>
<p>好比 FB 分享功能&#8230;</p>
<p>當今天我一篇文章裡面有好幾張圖片，而且沒有設定特色圖片的情況下</p>
<p>當我點下FB分享功能，預覽的小圖片卻是我的最後一張圖片 (看圖片解析)</p>
<p>往往不是我要的第一張圖片，所以因此很懊惱</p>
<p>找了很多網站，但是往往答案都不是我想要的&#8230;</p>
<p>所以問了朋友，也很感謝朋友大力的幫忙，所以終於順利研究成功了 !!</p>
<p>在自己的風格目錄檔底下開啟 functions.php，並輸入以下程式碼</p>
<p>[sourcecode language=&#8221;php&#8221;]</p>
<p>function get_feature_image(){<br />
global $post, $posts;<br />
$first_img = &#8221;;<br />
if ( has_post_thumbnail() ) {<br />
$first_img = wp_get_attachment_url( get_post_thumbnail_id() );<br />
} else {<br />
ob_start();<br />
ob_end_clean();<br />
$output = preg_match(&#8216;/&lt; *img[^&gt;]*src *=*[&quot;\&#8217;]?([^&quot;\&#8217;]*)/i&#8217;, $post-&gt;post_content, $matches);<br />
$first_img = $matches[1];<br />
}<br />
return $first_img;<br />
}</p>
<p>function fb_home_image( $tags ) {<br />
if ( is_home() || is_front_page() ) {<br />
// Remove the default blank image added by Jetpack<br />
unset( $tags[&#8216;og:image&#8217;] ); unset( $tags[&#8216;og:description&#8217;] );<br />
$fb_home_img = get_bloginfo(&#8216;template_directory&#8217;).&#8217;/img/default.jpg&#8217;;<br />
$tags[&#8216;og:image&#8217;] = esc_url( $fb_home_img );<br />
$tags[&#8216;og:description&#8217;] = get_bloginfo(&#8216;description&#8217;);<br />
}elseif(is_single( ) ){<br />
unset( $tags[&#8216;og:image&#8217;] );<br />
$tags[&#8216;og:image&#8217;] = get_feature_image();<br />
}<br />
return $tags;<br />
}<br />
add_filter( &#8216;jetpack_open_graph_tags&#8217;, &#8216;fb_home_image&#8217; );</p>
<p>[/sourcecode]</p>
<p>主就要是取消 Jetpack 自動 og:image 命名，並自己抓取文章第一張圖片來使用&#8230;</p>
<p>如果修改完成，看程式碼還沒變化時&#8230;如有安裝 WP-Cahe 記得先刪除快取</p>
<p>如果點選分享還是沒有改變圖案的話，可以使用 <a title="Facebook Debugger" href="https://developers.facebook.com/tools/debug/" target="_blank">Facebook Debugger</a> 工具</p>
<p>進去網站之後，輸入網址&#8230;就會看到抓取什麼資料</p>
<p>如果想要重新抓取，就點選 Fetch new scrape information 抓取新資料就可以了 <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>主要參考 香腸烤魷魚 &amp; 樂在設計 語法&#8230;.</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/jetpack-fb-%e5%88%86%e4%ba%ab%e4%bf%ae%e6%94%b9-ogimage/">Jetpack FB 分享修改 og:image</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iblog.ph-wbc.com/jetpack-fb-%e5%88%86%e4%ba%ab%e4%bf%ae%e6%94%b9-ogimage/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress 下雪功能</title>
		<link>https://iblog.ph-wbc.com/wordpress-%e4%b8%8b%e9%9b%aa%e5%8a%9f%e8%83%bd/</link>
					<comments>https://iblog.ph-wbc.com/wordpress-%e4%b8%8b%e9%9b%aa%e5%8a%9f%e8%83%bd/#respond</comments>
		
		<dc:creator><![CDATA[哈利]]></dc:creator>
		<pubDate>Sat, 06 Dec 2014 13:56:43 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://iblog.ph-wbc.com/?p=688</guid>

					<description><![CDATA[<p>因為聖誕節快到了，所以 WordPress 也有了小小變化 !! 進入後台之後，點選左邊 設定 -&#62; 一般 底下有</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-%e4%b8%8b%e9%9b%aa%e5%8a%9f%e8%83%bd/">WordPress 下雪功能</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>因為聖誕節快到了，所以 WordPress 也有了小小變化 !!</p>
<p>進入後台之後，點選左邊 <span style="color: #ff0000;">設定</span> -&gt;<span style="color: #ff0000;"> 一般 </span></p>
<p>底下有個 <span style="color: #ff0000;">雪</span>，把 <span style="color: #ff0000;">在我的網誌上顯示下雪效果，直到 1 月 4 <sup>日</sup>為止。</span></p>
<p>打勾，就可以有下雪特效了 !!!</p>
<p>有 WordPress 的人快試試看吧 <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-%e4%b8%8b%e9%9b%aa%e5%8a%9f%e8%83%bd/">WordPress 下雪功能</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iblog.ph-wbc.com/wordpress-%e4%b8%8b%e9%9b%aa%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress 媒體庫 找回</title>
		<link>https://iblog.ph-wbc.com/wordpress-%e5%aa%92%e9%ab%94%e5%ba%ab-%e6%89%be%e5%9b%9e/</link>
					<comments>https://iblog.ph-wbc.com/wordpress-%e5%aa%92%e9%ab%94%e5%ba%ab-%e6%89%be%e5%9b%9e/#respond</comments>
		
		<dc:creator><![CDATA[哈利]]></dc:creator>
		<pubDate>Wed, 19 Nov 2014 15:55:07 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://iblog.ph-wbc.com/?p=679</guid>

					<description><![CDATA[<p>由於前陣子把 WordPress 整個重新安裝&#8230; 只用了內建的 輸出 XML 功能，結果媒體庫都沒有備份到資</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-%e5%aa%92%e9%ab%94%e5%ba%ab-%e6%89%be%e5%9b%9e/">WordPress 媒體庫 找回</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>由於前陣子把 WordPress 整個重新安裝&#8230;</p>
<p>只用了內建的 輸出 XML 功能，結果媒體庫都沒有備份到資料</p>
<p>基本的轉移是備份資料庫在匯入&#8230;但是我沒有做這步驟，是為了要全新安裝</p>
<p>現在我想要把舊資料找回來，所以需要以下幾個東西，適合使用在新文章不多的地方</p>
<p>1.編輯器，可以編輯 .sql &amp; .xml 檔案<br />
2.舊資料 SQL 檔案&#8230;<br />
3.新資料 XML 檔案</p>
<p>前提是 upload 裡面的資料位置都正確&#8230;.</p>
<p><span style="color: #ff0000;">做之前請先做好完善備份&#8230;以免資料錯誤無法找回</span></p>
<p><span id="more-679"></span></p>
<p>第一步驟是要先把舊資料裡面的 wp_posts &amp; wp_postmeta 的資料複製出來&#8230;</p>
<p><span style="color: #ff0000;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span style="color: #ff0000;"># Table: `wp_posts`</span><br />
<span style="color: #ff0000;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span style="color: #ff0000;">內容</span><br />
<span style="color: #ff0000;"># End of data contents of table `wp_posts`</span></p>
<p>這樣是完整的區段，需要複製起來&#8230;</p>
<p>第二步驟利用 WordPress 後台的工具，把所有文章做 XML 匯出&#8230;</p>
<p>並且編輯 XML 檔案，把舊文章全部砍掉&#8230;..沒砍掉可能會有重覆資料產生</p>
<p>以上準備步驟都好了，就可以進行更專業一點的動作 !!!</p>
<p>第三步驟，進入 phpMyAdmin 管理 WordPress 資料庫</p>
<p>匯入 <span style="color: #ff0000;">第一步驟 擷取的資料庫內容 <span style="color: #333333;">，如果成功，打開網站應該會呈現舊資料狀態</span></span></p>
<p>再進入 WordPress 後台看媒體庫，資料應該是有找回來了&#8230;但就是獨缺新資料</p>
<p>第四步驟就是把編輯好只剩下新文章的 XML 由後台匯入&#8230;</p>
<p>這樣就完成文章的部分，至於新文章的圖片&#8230;我則是上傳圖片在進行編輯文章動作</p>
<p>以上是我自己動手做的答案，如有更好的歡迎一起交流 <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>也感謝 <a href="http://gordon168.tw/" target="_blank">高登</a> 的指教 !!!</p>
<p>&nbsp;</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/wordpress-%e5%aa%92%e9%ab%94%e5%ba%ab-%e6%89%be%e5%9b%9e/">WordPress 媒體庫 找回</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iblog.ph-wbc.com/wordpress-%e5%aa%92%e9%ab%94%e5%ba%ab-%e6%89%be%e5%9b%9e/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>iOS WordPress 無法新增文章</title>
		<link>https://iblog.ph-wbc.com/ios-wordpress-%e7%84%a1%e6%b3%95%e6%96%b0%e5%a2%9e%e6%96%87%e7%ab%a0/</link>
					<comments>https://iblog.ph-wbc.com/ios-wordpress-%e7%84%a1%e6%b3%95%e6%96%b0%e5%a2%9e%e6%96%87%e7%ab%a0/#respond</comments>
		
		<dc:creator><![CDATA[哈利]]></dc:creator>
		<pubDate>Fri, 26 Sep 2014 16:14:01 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://iblog.ph-wbc.com/?p=576</guid>

					<description><![CDATA[<p>昨天更新了 WordPress 4.0 使用系統內建更新 結果今天用 IOS WordPress 要新增文章卻出現以下畫</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/ios-wordpress-%e7%84%a1%e6%b3%95%e6%96%b0%e5%a2%9e%e6%96%87%e7%ab%a0/">iOS WordPress 無法新增文章</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>昨天更新了 WordPress 4.0<br />
使用系統內建更新</p>
<p>結果今天用 IOS WordPress 要新增文章卻出現以下畫面</p>
<p><a href="https://i0.wp.com/img.ph-wbc.com/2014/09/IMG_1690.png?ssl=1"><img class="alignnone size-full" src="https://i0.wp.com/img.ph-wbc.com/2014/09/IMG_1690.png?w=860&#038;ssl=1" alt="IMG_1690.PNG" data-recalc-dims="1" /></a></p>
<p>後來才發現原來是 xmlprc.php 不見了</p>
<p>但是怎樣不見，我就不知道了⋯</p>
<p>把之前的檔案上傳就去可以了</p>
<p>原本的 4.0 壓縮檔有，可內建升級就？</p>
<p>這篇文章 <a rel="nofollow" href="https://iblog.ph-wbc.com/ios-wordpress-%e7%84%a1%e6%b3%95%e6%96%b0%e5%a2%9e%e6%96%87%e7%ab%a0/">iOS WordPress 無法新增文章</a> 最早出現於 <a rel="nofollow" href="https://iblog.ph-wbc.com">Harry&#039;s iBlog</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://iblog.ph-wbc.com/ios-wordpress-%e7%84%a1%e6%b3%95%e6%96%b0%e5%a2%9e%e6%96%87%e7%ab%a0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
