Linux 软件免费装

Category Image(s)

开发者 coffee2code
更新时间 2012年6月11日 14:28
捐献地址: 去捐款
PHP版本: 2.2 及以上
WordPress版本: 3.4
版权: GPLv2 or later
版权网址: 版权信息

标签

post image categories category icon coffee2code

下载

1.7.2 1.7.3 v1.0 v1.1 1.7 1.7.1

详情介绍:

Display an image for each category associated with a post. Notes: This plugin provides the templates tag c2c_the_category_image() which basically reproduces and extends the functionality of WordPress's core function the_category() to add the ability to display a category image instead of the category name in the link to the category archive. With its $image_extensions argument defaulted to "", the plugin could be a drop-in replacement for the_category(). As is done in the_category(), the image or text for each category is also a link back to that category's archive. Related info about the function: c2c_get_category_image_list() is another provided function, which is identical to c2c_the_category_image() except that it doesn't echo the result. Links: Plugin Homepage | Plugin Directory Page | Author Homepage

安装:

  1. Unzip category-images.zip inside the /wp-content/plugins/ directory (or install via the built-in WordPress plugin installer)
  2. Activate the plugin through the 'Plugins' admin menu in WordPress
  3. Create category image (.png unless you specify the extension in your call to c2c_the_category_image()) for each category you wish to have an image for, placing the image into the wp-content/images/ directory (unless you specify another location in your call to c2c_the_category_image()). Remember to give the filename the nice-name version of the category name.
  4. Make use of the c2c_the_category_image() template function in your template (see examples below).

升级注意事项:

1.7.3 Trivial update: noted compatibility through WP 3.4+; explicitly stated license 1.7.2 Trivial update: noted compatibility through WP 3.3+ 1.7.1 Trivial update: noted compatibility through WP 3.2+ 1.7 Recommended update. Highlights: added multiple hooks to allow customization; made leading and trailing slashes in paths optional; allow sending post_id arg to c2c_get_the_category_image_list(); verified WP 3.0 compatibility; other miscellaneous tweaks and fixes.

更新日志:

1.7.3 1.7.2 1.7.1 1.7 1.6 (unreleased) = 1.5 1.2 1.1 1.0 0.92 0.91 0.9