Title: No Widget Category Cloud
Author: Matt Martz
Published: <strong>2007 年 10 月 22 日</strong>
Last modified: 2009 年 6 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/no-widget-category-cloud.svg)

# No Widget Category Cloud

 作者：[Matt Martz](https://profiles.wordpress.org/sivel/)

[下载](https://downloads.wordpress.org/plugin/no-widget-category-cloud.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/no-widget-category-cloud/#description)
 * [评价](https://cn.wordpress.org/plugins/no-widget-category-cloud/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/no-widget-category-cloud/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/no-widget-category-cloud/#developers)

 [支持](https://wordpress.org/support/plugin/no-widget-category-cloud/)

## 描述

Creates a function that can be placed in a wordpress template for a category cloud
that exists without the requirement of widgets or a widget ready theme.

I created this plugin after I started using a single column theme that is not widget
ready. I found that there were multiple plugin widgets available, but no plugin 
that would allow me to just place a php function into my theme to display a category
cloud.

Some ideas for oter uses of this plugin:

 1. Install WP-Sticky and Exec-PHP. Create a Sticky post which will stay at the top
    of your page and type the php code for this plugin in the post. Now you have a 
    Category Cloud that stays at the top of your page.

### Requirements

 1. WordPress 2.x
 2. Web server that supports PHP

### Upgrade

 1. Deactivate the plugin through the ‘Plugins’ menu in WordPress
 2. Delete the previous `no-widget-category-cloud` folder from the `/wp-content/plugins/`
    directory
 3. Upload the new `no-widget-category-cloud` folder to the `/wp-content/plugins/` 
    directory
 4. Activate the plugin through the ‘Plugins’ menu in WordPress

### Usage

    ```
    <?php nw_catcloud(small_size,big_size,size_unit,align,orderby,order,min_posts,hide_empty,title); ?>

    small_size = font size, integer (default 75)
    big_size = font size, integer (default 200)
    size_unit = %, px, pt (default %)
    align = left, right, center, justify (default left)
    orderby = count, name (default name)
    order = asc, desc (default asc)
    min_posts = minimum number of posts, integer (default 1)
    hide_empty = 0,1 (default 1, 1=yes,0=no)
    title = string (This can contain HTML to format the title) 
    ```

 1. Open the theme files, in your favorite editor, that you wish to add the category
    cloud to (index.php, single.php, page.php, etc…).
 2. Add a line that looks like above. You can also use the defaults by not specifiying
    anything between the parentheses. See example 2 below.
 3. Enjoy.
 4. As I mentioned in the description you can also use this plugin with Exec-PHP and
    it would make a nice combo with WP-Sticky.

#### Examples

 1. `<?php nw_catcloud(75,200,'%','left','name','asc',1,1,'<h2 class="posttitle" style
    ="margin-bottom:0px;">Categories</h2>'); ?>`
 2. `<?php nw_catcloud(); ?>`

### To Do

 1. I am open to suggestions.
 2. I am sure I will think of something.

### Credit

I’ve got to give credit where credit is due. And that credit goes to Lee Kelleher
and his Category Cloud Widget. I used a lot of his code in this plugin modifying
it where needed to make it work the way I wanted.

## 屏幕截图

[⌊Screenshot of end product.⌉⌊Screenshot of end product.⌉[

Screenshot of end product.

## 安装

 1. Upload the `no-widget-category-cloud` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

NOTE: See “Other Notes” for Upgrade and Usage Instructions as well as other pertinent
topics.

## 评价

此插件暂无评价。

## 贡献者及开发者

「No Widget Category Cloud」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Matt Martz ](https://profiles.wordpress.org/sivel/)

[帮助将「No Widget Category Cloud」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/no-widget-category-cloud)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/no-widget-category-cloud/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/no-widget-category-cloud/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/no-widget-category-cloud/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/no-widget-category-cloud/)。

## 更新日志

#### 0.2 (2007-10-22):

 * Initial Public Release

## 额外信息

 *  版本 **0.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.0 或更高版本 **
 *  已测试的最高版本为 **2.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/no-widget-category-cloud/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[formatting](https://cn.wordpress.org/plugins/tags/formatting/)
   [links](https://cn.wordpress.org/plugins/tags/links/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/no-widget-category-cloud/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/no-widget-category-cloud/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/no-widget-category-cloud/reviews/)

## 贡献者

 *   [ Matt Martz ](https://profiles.wordpress.org/sivel/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/no-widget-category-cloud/)