[WordPress] 外掛分享: Featured Posts and Custom Posts

首頁外掛目錄 › Featured Posts and Custom Posts
100+
安裝啟用
★★★★
4/5 分(3 則評價)
4038 天前
最後更新
問題解決
WordPress 3.1.1+ v2.0 上架:2012-06-19

內容簡介

當製作 WordPress 主題時,我們經常會使用很多自訂文章類型。這使得最終使用者可以管理自己的內容。往往我們需要能夠特別推薦文章或自訂文章類型(CPT),為此可使用各種不同的功能特色文章外掛程式。多年來,我們可能已經使用了所有的外掛程式,但始終無法找到一個不會與 WordPress 主題發生衝突或破壞的。因此,我們自己創建了一個特色文章及自訂文章類型,以便輕鬆使用,並可用於文章、自訂文章及我們開發的每個 WordPress 主題上安裝的「簡單頁面排序」外掛程式。

使用方法:

下載「feature-posts-and-custom-posts.zip」文件到您的電腦中。
解壓縮文件。
將「feature-posts-and-custom-posts」文件夾上傳到 /wp-content/plugins/ 目錄中。
透過 WordPress 的「外掛程式」選單啟用外掛程式。
在您的主題且在您需要使用特色功能的佈景中,使用如下自訂查詢:query_posts("post_type=professionals&posts_per_page=-1&meta_key=_jsFeaturedPost&meta_value=yes"),以擷取所有特色文章。

如需外掛程式和主題開發請求,請發電子郵件至[email protected]或前往此處 http://www.reactivedevelopment.net/。 如果您對此外掛程式有問題或要求,請前往此處 https://wordpress.org/support/plugin/featured-posts-custom-posts,或向我們付費諮詢請前往此處http://www.reactivedevelopment.net/contact/send-message/。

版本 2.0 中的新功能:
1. 新增 js_featured_is_post_featured( postID[int] ) 函式
2. 新增縮寫函式 is_post_featured( userID[int] )
3. 新增 js_featured_return_all_featured() 函式,可傳回特色文章的陣列
4. 新增 Widgets
5. 新增在存檔範本上,如果文章是特色文章,則添加文章類別「jsFeatured」
6. 新增短碼 [jsFeaturedPosts posts_per_page=”1″ wrap_before=”

” wrap_after=”

” link_before=”

” link_after=”

” link_atts=”rel=’bookmark'” link_title=”Link to”]

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Featured Posts and Custom Posts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

When working on WordPress themes, we tend to use a lot of custom post types. This gives the end- user custom little sections to manage content in. Often enough we see the need to be able to feature posts or custom posts of custom post types (cpts).
This can be accomplished by using a bunch of different Featured Posts Plugins. And we probably have used all of them over the years. To date we have yet to find one that didn’t conflict or break somehting in our WordPress themes. So we created our own, to be specifc we created our own to be easily used with Posts, Custom Posts, and with the Simple Page ordering plugin that we install on every WordPress Theme that we develop.
To use:

Download the feature-posts-and-custom-posts.zip file to your computer.
Unzip the file.
Upload the feature-posts-and-custom-posts folder to your /wp-content/plugins/ directory.
Activate the plugin through the Plugins menu in WordPress.
In your theme and in the template you need the featured functionality uses a custom query like this query_posts("post_type=professionals&posts_per_page=-1&meta_key=_jsFeaturedPost&meta_value=yes"); to grad all of the featured posts.

For Plugin and Theme development requets email us at [email protected] or go here http://www.reactivedevelopment.net/. If you have questions or requests for this plugin go here https://wordpress.org/support/plugin/featured-posts-custom-posts, for quick and paid support message us here at http://www.reactivedevelopment.net/contact/send-message/.
New in Version 2.0
1. New js_featured_is_post_featured( postID[int] ) function
2. short cut is_post_featured( userID[int] ) function
3. js_featured_return_all_featured() function that returns an array of featured posts
4. New widget added
5. Post class “jsFeatured” on archive templates added if the post is featured
6. New shortcode [jsFeaturedPosts posts_per_page=”1″ wrap_before=”
” wrap_after=”
” link_before=”
” link_after=”
” link_atts=”rel=’bookmark'” link_title=”Link to”]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon