
內容簡介
<b>總結:</b>
Categories All In One 是一個強大的外掛,讓您可以在 WordPress 網站的任何位置顯示可自訂的類別清單。您可以選擇分類,配置外觀,設定分類深度,並調整排序選項。
<b>問題與答案:</b>
<ol>
<li>Categories All In One 是什麼樣的外掛?
Categories All In One 是一個強大的外掛,讓您可以在 WordPress 網站的任何位置顯示可自訂的類別清單。</li>
<li>該外掛具有哪些功能?
- 支援任何包含「category」字串的分類
- 傳統小工具
- Gutenberg 區塊
- Shortcode [categories_all_in_one ...] 可以在任何地方嵌入分類
- 可配置清單樣式、計數括號、排序、深度和類別</li>
<li>何為 Shortcode 解釋?
Shortcode 是一種簡短的語法,用於在 WordPress 中輕鬆插入指定的功能或內容。在這個外掛中,Shortcode [categories_all_in_one ...] 可以嵌入分類到任何地方。</li>
<li>如何使用 Shortcode?
您可以透過設定不同的參數,如 list、separator、hide_empty 等,來自訂您想要顯示的分類樣式和內容。</li>
<li>如何查看該外掛演示?
您可以到 DEMO PAGE 查看該外掛的操作示範。</li>
<li>該外掛有哪些語言版本?
有英文版(en_EN)和波蘭文版(pl_PL)可供使用者選擇。</li>
<li>如何在開發模式下建立外掛?
要在開發模式下建立外掛,請依照以下步驟操作:
- 安裝相依套件
- 建立 Gutenberg 區塊
- 建立完整的外掛</li>
</ol>
外掛標籤
開發者團隊
原文外掛簡介
Categories All In One is a powerful and flexible WordPress plugin that lets you display a customizable list of categories anywhere on your site.
Choose your taxonomy, control the layout and style, set depth levels, and sort your content exactly how you need it – including manual drag-and-drop ordering of categories for full control over the display sequence.
For more information, check out PLUGIN HOMEPAGE.
Key Features:
Supports any category cointains ‘category’ string in name
Legacy widget
Gutenberg block
Shortcode [categories_all_in_one ...] for embedding the categories anywhere
Configure list style, counter brackets, sorting with drag & drop, depth and classes
Watch the demo video
Shortcode explanation:
[categories_all_in_one list="bullet" separator="" hide_empty="false" show_count="true" counter_brackets="round" orderby="name" order="asc" custom_class="" post="false" parent_category="" max_depth="0" block_custom_class="" taxonomy="category" exclude=""]
Params:
lang: optional language code, ‘en’
post: optional proper post ID, “”
taxonomy: proper taxonomies, separated by commas
parent_category: proper category ID, “”
orderby: name, count
order: asc, desc, rand
max_depth: 0, 1…n
hide_empty: true, false
exclude: category ID separated by commas, “”
include: category ID separated by commas, “”
list: bullet, numbered, “”
show_count: true, false
counter_brackets: round, curly, square, angle, “”
show_description: true, false
description_length: 0, 1…n
description_link: true, false
separator: “”
custom_class: “”
block_custom_class: “”
Example of use:
[categories_all_in_one exclude=”” lang=”en” post=”false” parent_category=”” orderby=”name” order=”asc” max_depth=”0″ hide_empty=”false” list=”bullet” show_count=”true” counter_brackets=”round” show_description=”true” description_length=”100″ description_link=”true” separator=”” custom_class=”” block_custom_class=”” taxonomy=”category”]
DEMO
You can see the plugin in action on DEMO PAGE
Translations
English (en_EN) – by Marcin Gierada
Polish (pl_PL) – by Marcin Gierada
Building the Plugin in Development Mode
The source code for the plugin is available at: GitLab Repository. We encourage developers to contribute, fork, and improve the plugin.
To build the plugin in development mode, follow these steps:
1. Install Dependencies
Run the following command to install npm dependencies:
npm install
2. Build Gutenberg Block
To build only the Gutenberg block, use:
npm run build-gutenberg
This will compile the block’s JavaScript and place it in the js/block/ folder.
3. Build Full Plugin
To build the entire plugin, including the Gutenberg block and other files, use:
npm run build
This will generate the plugin package in the dist/ folder.
