內容簡介
這是高度可配置的標籤雲外掛,其主要功能包括:
整體、單個作者或多個作者 per cloud
選擇要顯示標籤的分類或文章類型
從抓取標籤時要包含哪些文章的規則
包含/排除功能
大量排序、著色和樣式選項
多種選擇條款的策略選項,可創建自己的。內建的條款選擇策略包括最常用、隨機、最近新增、來自當前文章列表等等。
為開發人員提供的快速結構和 API
此外掛的開發已停止。我會確保基本功能能在 WordPress 的最新版本上運行,但不會新增功能或變更。
代碼可在 GitHub 上取得,如果需要新的功能,歡迎您提交拉取要求。
快速連結:
短碼資訊:https://wordpress.org/plugins/ultimate-tag-cloud-widget/other_notes/#Theme-integration-/-Shortcode
短碼配置選項:https://github.com/rickard2/utcw/blob/master/CONFIG.md
顯示部分配置選項的 Playground:https://0x539.se/wordpress/tag-cloud-playground/
自訂選擇策略文件:https://github.com/rickard2/utcw/blob/master/STRATEGY.md
回饋
此外掛正在進行積極開發,我的目標是儘可能協助遇到問題或提出建議的每個使用者。如果您發現漏洞或有功能請求,請使用GitHub Issues。如果需要支援,請使用 WordPress 論壇。
我的聯絡方式如下:
rickard (a) 0x539.se(電子郵件、Hangouts 等)
twitter.com/rickard2
如果您使用此外掛並且喜歡它,請考慮捐贈。
主題整合/短碼
即使您不使用標准的 WordPress widget,也可以在自己的主題中通過以下方式整合小工具。只需按照說明安裝和載入插件,然後使用以下函數:
<?php do_utcw($args); ?>
其中,$args 是一個包含您想要設置的選項的key => value對應鍵值配對的數組。例如,如果您想要更改小工具的標題:
<?php
$args = array( "title" => "最棒的標題" );
do_utcw( $args );
要使用多個配置選項,只需使用逗號分隔它們:
<?php
$args = array( "title" => "最棒的標題", "max" => 10 );
do_utcw( $args );
如果您無法更改自己的主題,您也可以在文章或頁面中使用短碼[utcw]。您可以使用key="value"的格式將任何設置傳遞給短碼,例如,如果您想要更改小工具的標題:
[utcw title="最棒的標題"]
插件還使用了一些過濾器,讓您能夠修改輸出。這些在 GitHub 上的過濾器文檔中有說明。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This is the highly configurable tag cloud widget, the main features for this plugin is:
All, single author or multiple authors per cloud
Select which taxonomies or post types to show tags for
Rules for which posts to include when fetching tags
Inclusion/exclusion functions
A bunch of ordering, coloring and styling options
Multiple strategies for selecting terms with the option to create your own. Built in strategies for most popular, random, recently added, from current list of posts
Short code and API for developers
The development of this plugin has stopped. I will make sure that the basic features still work with upcoming WordPress versions, but no new features or changes will be made.
The code is available on github and if you’re in need of new features, you’re welcome to submit a pull request for it.
Quick links:
Short code information: https://wordpress.org/plugins/ultimate-tag-cloud-widget/other_notes/#Theme-integration-/-Shortcode
Short code configuration options: https://github.com/rickard2/utcw/blob/master/CONFIG.md
Playground which shows some configuration options: https://0x539.se/wordpress/tag-cloud-playground/
Custom selection strategy documentation: https://github.com/rickard2/utcw/blob/master/STRATEGY.md
Feedback
This plugin is under active development and my goal is to try to help everyone who have issues or suggestions for this plugin. If you find bugs or have feature requests please use GitHub issues, if you need support please use the WordPress forums.
My contact information is
rickard (a) 0x539.se (email, hangouts, you name it)
twitter.com/rickard2
If you use this plugin and like it, please consider leaving a donation.
Theme integration / Shortcode
You can integrate the widget within your own theme even if you’re not using standard WordPress widgets. Just install and load the plugin as described and use the function
…with $args being a array of key => value pairs for the options you would like to set. For example if you’d like to change the title of the widget:
"Most awesome title ever" );
do_utcw( $args );
To use multiple configuration options just separate them with a comma:
"Most awesome title ever", "max" => 10 );
do_utcw( $args );
If you’re not able to change your theme you can also use the shortcode [utcw] anywhere in your posts or pages. You can pass any of the settings along with the shortcode in the format of key="value", for instance if you’d like to change the widget title:
[utcw title="Most awesome title ever"]
The plugin also uses a couple of filters for you to be able to alter the output. These are documented in the filters documentation at GitHub.
As of version 2.6 you can create custom selection strategies, more information can be found in the strategy documentation at GitHub
Configuration
All the configuration options can be found in the configuration documentation at GitHub.
Breaking changes in version 2.0
Tags lists with named tags will not work in version 2.0, only tags lists with IDs.
The configuration option for text case has been renamed from case to text_transform
The styles for links aren’t marked as !important in the CSS longer, this might change the cloud presentation in some cases
The shortcode and theme integration function call no longer accepts the widget arguments before_widget, after_widget, before_title and after_title
Thanks
The power of the open source community is being able to help out and submitting patches when bugs are found. I would like to thank the following contributors for submitting patches and helping out with the development:
Andreas Bogavcic
Fabian Reck
With your help this list will hopefully grow in the future 😉
