跳到内容

HTML Classified Recent Posts & Comments Widgets

v1.0

Jan Štětina · 2012年8月22日 上架

Default WordPress widgets with "class" attributes identifying posts added to links.

正在使用
10+
评分
暂无
累计下载
3,554
最近更新
2012年8月22日
需要 WordPress 3.3+已测试到 3.4.2

贡献者

This plugins adds two widgets: Classified Recent Posts and Classified Recent Comments. They differ from the default widgets only in one thing – each listed link contains HTML class attribute describing which post it is related to. For recent comments the whole li tag also contains this attribute.

Listed classes are similar to the output from get_post_class (see WordPress Codex), each class has a prefix to prevent problems with CSS styling

  • crpw- for Custom Recent Posts Widget
  • crcw- for Custom Recent Comments Widgets

You can use this for example to highlight links to posts from chosen categories or witch chosen tags (or a particular post) via CSS.

Plums

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

导航

说明

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

© 2026 Plums