跳到内容

Post’s Categories in Sidebar

v1.0

zevdesigns · 2012年1月4日 上架

Displays the categories for a single post in the sidebar.

正在使用
10+
评分
暂无
累计下载
3,218
最近更新
2012年1月5日
需要 WordPress 2.0+已测试到 3.3.2

贡献者

截图

The widget in use. Styled according to the normal widget sidebar.
The widget in use. Styled according to the normal widget sidebar.
The Application -> Widgets page
The Application -> Widgets page

This plugin was created to show the categories for a single post in the sidebar.

The categories will be displayed in an unordered list.

You can choose the title for the widget in the sidebar if you wish.

If you’re using the plugin, please drop the link to your blog here.

Example:

<li id="cz_post_cat-3" class="widget-container widget_cz_post_cat">
    <h3 class="widget-title">Topics</h3>
    <div class="cz-post-cats">
        <ul class="cz-cat-ul">
            <li class="cz-cat-li"><a href="http://xxx.xxx.xxx/topic/facebook/">Facebook</a></li>
            <li class="cz-cat-li"><a href="http://xxx.xxx.xxx/topic/jobs/">Jobs</a></li>
        </ul>
    </div>
</li>

It uses the is_single() query in php so that it ONLY shows up on single posts. Not pages.

Arbitrary section

Anyone need any info here?

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums