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

Select Featured Posts

外掛說明

This allows you to mark the selected post as featured post and hence enables editors, publishers, bloggers etc to feature relavent content on the site.

In most content publishing scenarios, where there are a large set of contributors, certain posts require to be featured in relevant content sections of your WP site, so that they draw the maximim attention span from the readers. This Plugin allows the editors or administrators to mark a set of posts as featured posts. Then using a simple functional call in your theme, you can dynamically display the featured posts. if you want to place it separatly.

Select Featured Posts plugin is also available as a widget.

We would be keen you hear your feedback and requests for any enhancements. Please send your feedback to wordpress@mediologysoftware.com.

螢幕擷圖

  • Select Featured post checkbox in the Admin panel
  • Widget Display.

安裝方式

  1. Upload the select-featured-posts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the Posts -> Posts screen if you have wordpress 3.0 and for older versions go to Posts -> Edit.
  4. Check and uncheck posts to make it featured/unfeatured
  5. To use it in theme add this before query_posts or get_posts

    if (function_exists(‘featured_posts’)) {
    featured_posts(‘add’);
    }

    If query_posts or get_posts is not there in your theme then you can add above code and query_posts before while loop
    For eg.

  if (function_exists('featured_posts')) {
    featured_posts('add');
  }
  query_posts('posts_per_page=10');
    while ( have_posts() ) : the_post();
    //Your Code
  endwhile; // end of the loop.
  if (function_exists('featured_posts')) {
    featured_posts('remove');
  }
  
  1. To remove the featured post from the query post buffer once the same have been displayed add this code

    if (function_exists(‘featured_posts’)) {
    featured_posts(‘remove’);
    }

For eg.

  if (function_exists('featured_posts')) {
      featured_posts('add');
    }
    query_posts('category_name=Entertainment');
    // Hence now that the featured posts have been displayed clear them so that they don't get repeated.
    if (function_exists('featured_posts')) {
      featured_posts('remove');
    }

So it will give featured post of Entertainment Category.

OR

  1. If you want to get Featured post IDs only then use this

    if (function_exists(‘get_featured_posts’)) {
    $limit = 5;
    $featured_posts = get_featured_posts($limit);
    }

  2. If your theme supports widgets then go to Appearance -> Widgets and just Drag and Drop Select Featured Post Widget.

  3. In widget you can specify total no of posts or Featured Post of a Category.

常見問題集

Please send us your questions to wordpress@mediologysoftware.com. We will feature the frequently asked questions and answers here.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Select Featured Posts〉的開發相關工作。

參與者

將〈Select Featured Posts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.2

  • Removed Notices and updated documentation

0.1

  • Initial release