這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Category Thumbnail Excerpt

描述

These must be in function.php in the theme for the plugin to work for thumbnail and excerpt:

add_theme_support( ‘post-thumbnails’ );

set_post_thumbnail_size( form_option(‘thumbnail_size_w&&echo=false’), form_option(‘thumbnail_size_h&&echo=false’), true );

function custom_excerpt_length( $length ) {
return 20;
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
function custom_excerpt_more( $more ) {
return ”;
}
add_filter( ‘excerpt_more’, ‘custom_excerpt_more’ );

You’ll also need to add thumbnails to the posts you want visible in the list.

After that, all you need to do is to add the hook [getcatlist 1] (where 1 is a categoy id) to your post.

螢幕截圖

  • The plugin in action.

安裝

This section describes how to install the plugin and get it working.

  1. Upload “categoy-thumbnail-list” to the “/wp-content/plugins/” directory
  2. Add the following rows to your themes functions.php
    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( form_option(‘thumbnail_size_w&&echo=false’), form_option(‘thumbnail_size_h&&echo=false’), true );
  3. Activate the plugin through the “Plugins” menu in WordPress
  4. Add the hook in a post. Example: [getcatlist 3]

常見問題

None, yet.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Category Thumbnail Excerpt” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Category Thumbnail Excerpt 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Creation