這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Newer Tag Cloud

描述

Newer Tag Cloud is a WordPress plugin that generates a tag clouds. This plugin was inspired by the original New Tag Cloud.

Newer Tag Cloud uses the WordPress own tagging feature, so that you don’t need any tagging plugin. You can use New Tag Cloud directly as a shortcode in any post/page, as a widget, or in the theme as PHP code. Use it however you’d like, it’s flexible!

The original New Tag Cloud had been without updates for 7 years this caused issues with modern WordPress versions. Due to the issues, for a short time, a privately updated version was created at Liquid Web. Now this small fix has been turned into a complete code refactor. The results are now being released to the community!

Configurebale options
* widget box title
* how many tags should be shown
* biggest font size
* smallest font size
* font size stepping
* font size type (px, em, rem, etc)
* filtering
* caching

安裝

Installation is very easy:

  1. Download the plugin zip to the /wp-content/plugins/ directory
  2. Extract the files in the plugins folder. The result being a new /wp-content/plugins/newer-tag-cloud directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Check out the ‘Widgets’ tab in the ‘Theme’ menu and drag the ‘New Tag Cloud’ widget to your sidebar.

Using directly from a theme file:
Follow the steps 1 and 2 above. Step 3 is to place this code into your theme file:

Or you want place a tag cloud in a post, on a page or in a text widget?

Use a shortcode: [newer-tag-cloud] or [newer-tag-cloud int=1]

常見問題

Installation Instructions

Installation is very easy:

  1. Download the plugin zip to the /wp-content/plugins/ directory
  2. Extract the files in the plugins folder. The result being a new /wp-content/plugins/newer-tag-cloud directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Check out the ‘Widgets’ tab in the ‘Theme’ menu and drag the ‘New Tag Cloud’ widget to your sidebar.

Using directly from a theme file:
Follow the steps 1 and 2 above. Step 3 is to place this code into your theme file:

Or you want place a tag cloud in a post, on a page or in a text widget?

Use a shortcode: [newer-tag-cloud] or [newer-tag-cloud int=1]

So what does ‘inspired by New Tag Cloud’ mean exactly?

Initially the plugin was created as a direct fork of New Tag Cloud, only used internally and not publically released. A new version of the plugin was created based on the WordPress Plugin Boilerplate with common features being implemented in Newer Tag Cloud.

How to use vanilla PHP to add a Tag Cloud?

If you want to use Newer Tag Cloud in your theme you can still use <?php newerTagCloud() ?>. If you want to use a specific widget you can provide the function an ID as parameter. For example, <?php newerTagCloud(2) ?> will result in the configuration using the instance provided.

Using shortcodes to add a Tag Cloud?

Simply add [newer-tag-cloud] or [newer-tag-cloud int=<ID>] to your post or page and the tag cloud will be shown there. If you use [newer-tag-cloud] the instances set as “Default instance for shortcode” is used. With int= set you can specify an instance to use. For example, this is useful if you need two, or more, different tag clouds generated via shortcode.

Can I use multiple unique clouds?

Yes. All “layout specific options” are stored in each instance. The instance has an ID which you can use to call it.
This feature allows you the place different tag clouds on your blog as needed.

So who worked on this?

Credit to the original plugin goes to funnydingo.
This redone version was created by liquidwebdan (aka MallardDuck on GitHub)

Finally, credit for the WordPress Plugin Boilerplate inspiration goes to:

評價

2017年9月1日 1 reply
Hello All, It sounded like a really good idea, but unfortunately, it would not activate. And so you know, I tried it on two different sites on different servers. Parse error: syntax error, unexpected ':', expecting '{' in /var/www/volumes/xvdh2/vhosts/reallycoolhalloweencostumes.com/httpdocs/wp-content/plugins/newer-tag-cloud/newer-tag-cloud.php on line 101 If you get it working, I'd be willing to try it again and change the feedback. Thanks for the effort
閱讀全部1個評價

貢獻者及開發者

“Newer Tag Cloud” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Newer Tag Cloud 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.2

  • Fix odd bug causing issues with posts page.

1.1.0 & 1.1.1

  • First update!
  • Improves the plugins widget a lot
  • Now using WP_Widget to define the widgets logic
  • Clean up some code

1.0.0

  • Initial version inspired by New Tag Cloud