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

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」是开源软件。 以下人员对此插件做出了贡献。

贡献者