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

Featured Custom Posts Widget

外掛說明

This plugin was initially designed as a theme function but we thought it might come in handy for someone else. It is designed to use the following plugins:

Of course you can create your own custom post types and taxonomies but the Custom Post Type UI plugin makes very light work of it.

The plugin creates a widget for adding featured posts. There are other plugins that do this but Featured Custom Posts allows for custom post types and taxonomies. It was created to show featured products that were created as custom post types.

Features

  • Select number of posts to display (default: 10)
  • Post Type
  • Custom Taxonomy
  • Custom Taxonomy Term

New In Version 1.1

  • Added Permalink Base for post URL (Defaults to post’s GUID)
  • Added Post Title as the link text if Taxonomy Images plugin isn’t present

Example Usage

Custom Post Type: “products”
Taxonomy: “product-tags”
Taxonomy Term: “featured”

In this example our custom post type of “products” allows us to add products in a similar way to posts. Now with our custom taxonomy of “product-tags” we can tag our products with the tag “featured”. Plug this information into the widget via the wp-admin area and you’re all set!

Future Updates

  • Allow for multiple taxonomy terms
  • Add thumbnail size support

螢幕擷圖

  • View of widget in wp-admin

安裝方式

To install this plugin please use the “install” feature from the WordPress site.

常見問題集

How do I use the Permalink Base feature?

This gives you a way to add a custom slug in front of your post_name in the URL if you’re using permalinks. If your permalink structure looks like /%category%/%postname%/ then your permalink base might look like /products, for example. You can also use a single forward slash to produce something like example.com/post-name

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.1.0

  • Added: Permalink Base for post URL (Defaults to post’s GUID)
  • Added: Post Title as the link text if Taxonomy Images plugin isn’t present

1.0.1

  • Added: Functionality that checks if “Taxonomy Images” plugin is active and in use
  • Added: Class “featured-custom-posts” to list of custom posts

1.0.0

  • Initial setup