Title: Featured Category
Author: Clifton Griffin
Published: <strong>2008 年 10 月 8 日</strong>
Last modified: 2011 年 2 月 2 日

---

搜索插件

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

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

# Featured Category

 作者：[Clifton Griffin](https://profiles.wordpress.org/clifgriffin/)

[下载](https://downloads.wordpress.org/plugin/featured-category.zip)

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

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

## 描述

Featured Category allows you to display recent posts from the category of your choosing
at the top of your home page before “The Loop”. You are able to customize the number
of posts, the style they are displayed in, and the heading used to describe. It 
is perfect for displaying recent news, projects, and other things you may wish to
stand out in your blog.

This is not a sidebar widget. It is a home page addition. See the provided screenshots
to understand how it might look on your site.

**Donate?**

If you use this plugin and find that it serves your needs well, please consider 
a donation. 🙂

**Support**

If you need support, I recommend you leave a comment on the appropriate post on 
my blog:
 http://clifgriffin.com/2008/10/05/featured-category/

**Special Requests**

If you need a customization or change specific to your install, I am available for
hire. Shoot me an e-mail: clifgriffin[at]gmail.com

#### Version History

**1.1**

 * Integrated CSS into admin panel. Now stores stylesheet in WordPress database.
 * Added instructions.
 * Tweaked a few other things.

**1.0.2.1**

 * Fixed security issue. Now only administrators can modify admin settings.
 * Deleted trailing spaces at the end of the main plugin file. This was somehow 
   causing conflicts with WP Super Cache plugin. Bizzarre, I know.

**1.0.2**

 * Fixed path name. (WordPress renamed the installation folder.)

**1.0.1**

 * Settings page now sets the category drop down box selection when you return to
   the page.
 * It shouldn’t run in sidebar widgets anymore. (Assuming the content portion loads
   before sidebar…I may need to tweak this in the future.)

**1.0**

 * Original release.

#### Background

About a month ago I began searching for a plugin I just knew existed. I needed a
plugin that would allow me to select a category, a number of posts, and display 
a neatly formatted list of the applicable posts from that category.

For the site in question, I needed to list recent posts from a “Projects” category.
I imagined that there would be at minimum a plugin for posting news items that I
could modify. I settled with using The_Loop. At the time I made a mental note “I
need to turn this into a plugin.”

Which brings us to Featured Category, my first WordPress Plugin. (Be gentle!)

I tried to follow the WordPress API as closely as possible.

Once you activate the plugin, simply load its settings page and choose the category,
the title or “heading” and the number of posts you wish to display.

If the style is not to your liking, the CSS in the plugin admin page. I have included
entries for implemented and unimplemented portions to speed things up.

## 屏幕截图

 * [[
 * A sample from my site.
 * [[
 * The settings page.

## 安装

 1. Upload the directory “featured-category” to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Customize settings via settings control panel in wordpress administration pages.

## 常见问题

  Why aren’t my changes showing up?

Probably browser or plugin caching. If you have a caching plugin enabled, ensure
you delete the cached version and refresh again.

  How do I customize the style?

Modify style sheet in admin page.

  Can feature x be added?

Maybe! E-mail me: webmaster[at]clifgriffin.com

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Clifton Griffin ](https://profiles.wordpress.org/clifgriffin/)

[帮助将「Featured Category」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/featured-category)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.1**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/featured-category/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[featured](https://cn.wordpress.org/plugins/tags/featured/)
   [recent](https://cn.wordpress.org/plugins/tags/recent/)
 *  [高级视图](https://cn.wordpress.org/plugins/featured-category/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Clifton Griffin ](https://profiles.wordpress.org/clifgriffin/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://clifgriffin.com/donate/)