內容簡介
p>多欄位分類清單 (Multi-Column Taxonomy List) 是一款外掛,能夠讓您將類別 (categories)、標籤 (tags) 或自定義分類 (custom taxonomies) 列成多欄位。
這款外掛非常適合用於自定義檔案存檔索引頁面,將所有類別、標籤和自訂分類顯示在單一頁面上。您還可以將清單轉換為鏈接,連結到您的分類頁面 RSS 訂閱鏈接。
使用方法
簡碼屬性
您可以在頁面內容中添加簡碼 [mctl] 以實現新的清單。默認情況下,它會將類別分成三欄,標題為 "類別"。您可以使用以下格式的屬性自定義輸出:[mctl taxonomy='post_tag' title='標籤']。
taxonomy:從中檢索詞彙的分類法
有效值: category、post_tag、custom_taxonomy_name
不允許多個值
默認值: category
title:設置清單的標題
有效值:任何字符串
默認值: 類別
title_container:將標題包裝在 HTML 元素中
有效值:任何 HTML 元素
推薦值: h1、h2、h3、h4、h5、h6、p
默認值: h3
columns:設置要使用的列數
有效值:任何整數
默認值: 3
orderby:按名稱、唯一 ID、slug 或此類別中帖子的計數排序詞彙
有效值: name、id、slug、count
默認值: name。
order:分類順序 (升序或降序) 的排序方式
有效值: ASC、DESC
默認值: ASC
alpha_grouping:輸出每個字母的字母分組
有效值: 0、1
默認值: 0
show_count:切換每個詞彙中目前帖子計數的顯示。 0 是關閉,1 是開啟
有效值: 0、1
默認值: 0
exclude:從結果中排除一個或多個詞彙。
有效值:逗號分隔的唯一 ID。 (例如:exclude='12,13,22')
默認值:沒有默認值
parent:獲取此詞彙的直接子元素
有效值:任何整数
不允許多個值
默認值:沒有默認值
child_of:獲取此詞彙所有子孫元素
有效值:任何整数
不允許多個值
默認值: 0
rss:將清單轉換為分類頁面 RSS 訂閱鏈接。0 是關閉,1 是開啟
有效值: 0、1
默認值: 0
rss_image:當 rss 開啟時使用自定義圖像 RSS 圖像圖標。
有效值:圖像的完整 URL
默認值: /wp-includes/images/rss.png
number:要顯示的詞彙的最大數量
有效值:任何整数
默認值:顯示所有詞彙
外掛標籤
開發者團隊
原文外掛簡介
Multi-Column Taxonomy List is a plugin that allows you to list your categories, tags, or custom taxonomies into multiple columns.
This plugin is great to use on custom archives index pages to display all categories, tags, and custom taxonomies on a single page. You can also turn the list into links to the RSS feeds for your taxonomies.
Usage
Shortcode attributes
You can implement a new list by adding the shortcode [mctl] to the content of a page. By default, it will output the categories into three columns with a heading of Categories. You can customize the output using attributes in the following format: [mctl taxonomy='post_tag' title='Tags']
taxonomy: The taxonomy to retrieve terms from
Valid values: category, post_tag, custom_taxonomy_name
Multiple values not allowed
Default: category
title: Sets the title of the list
Valid values: any string
Default: Categories
title_container: HTML element to wrap the title in
Valid values: any HTML element
Recommended values: h1, h2, h3, h4, h5, h6, p
Default: h3
columns: Sets the number of columns to use
Valid values: any integer
Default: 3
orderby: Sort terms by name, unique ID, slug, or the count of posts in that term
Valid values: name, id, slug, count
Default: name
order: Sort order for the terms (either ascending or descending)
Valid values: ASC, DESC
Default: ASC
alpha_grouping: Output the first letter of each alphabetical grouping
Valid values: 0, 1
Default: 0
show_count: Toggles the display of the current count of posts in each term. 0 is false/off and 1 is true/on
Valid values: 0, 1
Default: 0
exclude: Exclude one or more terms from the results.
Valid values: unique IDs, separated by commas. (ex: exclude='12,13,22')
Default: no default
parent: Get direct children of this term
Valid values: any integer
Multiple values not allowed
Default: no default
child_of: Get all descendents of this term
Valid values: any integer
Multiple values not allowed
Default: 0
rss: Turns the list into links to RSS feed of term. 0 is false/off and 1 is true/on
Valid values: 0, 1
Default: 0
rss_image: Use a custom image RSS image icon when rss is on.
Valid values: full URL to image
Default: /wp-includes/images/rss.png
number: Max number of terms to display
Valid values: any integer
Default: display all terms
like: Return terms that begin with this value
Valid values: any string
Default: no default
search: Return terms that contain the ‘search’ string
Valid values: any string
Default: no default
Template tag
Alternatively, you can implement a new list by adding the the template tag anywhere in the code of your theme. Just like the shortcode, by default it will output the categories into three columns with a heading of Categories. You can customize the output using a string of parameters in the following format:
Refer to the above attributes for customizations.
