[WordPress] 外掛分享: Category Shortcode

前言介紹

  • 這款 WordPress 外掛「Category Shortcode」是 2010-03-02 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2010-10-15,距離現在已有 5317 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.9.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

robertdrake |

外掛標籤

category | shortcode |

內容簡介

此外掛建立 [Category] 短代碼,短代碼帶有五個引數:

number:要顯示的文章數,0 表示使用預設數量。-1 表示全部顯示。

Order:升冪或降冪。

Display Method:完整、摘要或標題。

Order By:根據作者、日期、標題、修改日期、繼承、ID、隨機、無或評論數進行排列。

Category:此為欲搜尋之類別或類別的 ID。可以使用逗號分隔多個類別。

範例短代碼:

[Category number=’5′ method=’title’ order=’asc’ id=’11,45′ orderby=’comment_count’]

此代碼會顯示 11 和 45 類別中,標題或評論數最高的五篇文章,按升序排列。

致謝

非常感謝 g33kg0dd3ss 找到 1.3 版本修正迴圈錯誤的問題,並提供補丁。

未來的新增功能?

讓外掛表單能夠選擇多個類別

讓外掛表單能夠選擇多個排列方法

在管理員表單中限制文章數僅接受數字輸入。

在管理員表單中加入複製貼上指令碼。

接受類別名稱作為有效輸入。

國際化外掛

改進文章格式或讓格式更容易編輯,使使用者更可以控制格式。

允許添加的附件

開啟或關閉標題連結。

在輸出中允許評論。

讓使用者可以更多地控制文章格式。

新增能夠透過短代碼修改縮圖選項的功能。

原文外掛簡介

This plugin creates the [Category]] Shortcode. The code takes 5 arguments:
number: the number of posts to display. 0 equals the default number. -1 equals the total available.
Order: Ascending or Descending
Display Method: Full, Excerpt, Title
Order By: Author, Date, Title, Modified, Parent, ID, Rand, None, or Comment Count.
Category: this is the category id the category or categories that should be searched. Multiple categories can be specified in a comma separated list.
Example shortcode:
[Category number=’5′ method=’title’ order=’asc’ id=’11,45′ orderby=’comment_count’]
This will show 5 posts in ascending order of category 11 and 45 as arranged by comment_count and will display just the post titles.
Acknowledgements
A big thank you to g33kg0dd3ss for figuring out the 1.3 fix issue with the loop being broken. She contributed the patch fix.
Future Additions?

Let plugin form allow for multiple category selections

Let plugin form allow for multiple orderby methods

In admin form restrict Number of posts to numbers only.

In admin form setup a copy and paste script

Accept a category name as a valid input

Internationalization of the plugin

Improve Formatting of Posts / Make formatting easier to edit./ Give user more control over formatting

Allow attachments to come through

Turn title links on or off.

Allow comments in output

Give user more control over the postformatting

Add ability to modify thumbnail options through shortcode

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Category Shortcode」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.1 | 1.2 | 1.3 | trunk |

延伸相關外掛(你可能也想知道)

  • FileBird – WordPress Media Library Folders & File Manager 》Media Folder 是史上最佳的 WordPress 外掛,可讓您使用資料夾對媒體庫進行分類。, 我們可以使用拖放式組織方式整理 WordPress 媒體庫資料夾。, 試用 | 升級...。
  • Pages with category and tag 》在頁面中新增分類和標籤。。
  • WordPress Tag, Category, and Taxonomy Manager – AI Autotagger 》axoPress allows you to show a customizable display of the terms assigned to the current post. You can choose which taxonomy and which format to dis...。
  • Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
  • Remove Category URL 》這個外掛可以徹底將 WordPress 網站的連結結構中的「/category/」去除(例如:從 mydomain.com/category/my-category/ 變成 mydomain.com/my-category/ )。,...。
  • Category Posts Widget 》Category Posts Widget是一個輕巧的小工具,設計用於一件事並且做得很好:顯示特定類別中最新的文章。, 基於詞語和類別的文章小工具, 這個免費小工具的高級版...。
  • Media Library Categories 》此外掛可允許在 WordPress 媒體庫中使用分類。啟用後,媒體庫中會顯示下拉式的分類清單。, 您可以使用大量動作進行多項目的分類更改、新增或移除分類。, 在使...。
  • Add Category to Pages 》「Add Category to Pages」外掛讓你能夠快速新增 WordPress 頁面的分類和標籤。, 這個外掛能夠為 WordPress 頁面加上 WordPress 分類的功能。, 啟用外掛後,...。
  • WP No Base Permalink 》該外掛能夠將分類基礎從您的分類永久連結中移除 (可選)。默認情況下啟用。, 該外掛能夠從您的分類永久連結中移除父級分類 (可選)。, 該外掛能夠將標籤基礎從...。
  • Advance WordPress Search Plugin 》WooCommerce Advance Product Search是WooCommerce最快的搜尋外掛程式,支援AJAX搜尋和搜尋結果頁面顯示。, TH Advance Product Search是一個強大的基於AJAX...。
  • Term Management Tools 》請注意,此外掛需要至少 PHP 7.1。, 如果您需要重新組織標籤和分類,此外掛可以讓您更輕鬆地進行操作。它在條目管理頁面的“批次操作”下拉菜單中添加了三個新...。
  • Taxonomy Images 》在你的主題中顯示圖像, 有一些過濾器可以在你的主題中使用,來顯示此外掛創建的圖像關聯。請閱讀以下詳細信息。, 顯示代表術語檔案庫的單個圖像, 以下過濾器...。
  • PS Taxonomy Expander 》PS Taxonomy Expander 可以讓您更輕鬆地在編輯文章時使用類別、標籤和自訂分類法。, 功能, , 啟用將分類法核取方塊變成有階層的單選按鈕功能。, 讓您在 WordP...。
  • Parent Category Toggler 》當選擇子目錄時,自動切換到父目錄。, 1.3.4, , 相容更新 WordPress 4.8。, , 1.3.3, , 測試過 WP 4.4。, , 1.3.2, , 只在 wp-admin 的文章 (也包括自訂文章...。
  • List Custom Taxonomy Widget 》清單自訂分類小工具是一種快速且簡單的方式,可以顯示自訂分類。只需從自動填充的清單中選擇要顯示的分類名稱即可。您還可以設置小工具要顯示的標題。可以將...。

文章
Filter
Apply Filters
Mastodon