取得部分文章

取得部分文章

[php]
function _diggthis_get_post_description() {
$excerpt = get_the_content();
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$excerpt = substr($excerpt,0, 350);
$words_array = explode(' ', $excerpt);
$word_cnt = count($words_array);
return implode(' ', array_slice($words_array, 0, $word_cnt - 1));
}
[/php]

wordpress
CH02用戶資料CH03基本APICH05 分類頁面Category.phpCH09Screen Options(顯示選項)CH10外掛pluginsCH11 add_actionCH12 add_filterCH13Meta Box(自訂區塊)CH14widget(自訂模組)CH15 DBCH16AJAXCH17ShortcodeCH20 wordpress muCH30WooCommerce