Linux 软件免费装

Plugin Name

开发者 technosailor
更新时间 2012年4月24日 06:01
PHP版本: 2.7-RC1 及以上
WordPress版本: 2.7-RC1

标签

featured loop template tag wordpress2.7

下载

1.0

详情介绍:

安装:

  1. Upload wp-smartfeatures to wp-content/plugins/
  2. Activate
  3. Add keyword on the Settings > Reading screen
  4. Alternatively, install from WordPress admin since you have to use WP 2.7 for this plugin to work.

常见问题:

I am using WordPress 2.6. How come this plugin will not work?

I have specifically chosen to make this plugin WordPress 2.7 compatible only. Part of that is to demonstrate to other plugin authors how to effectively build plugins under the new architecture. The other is simply because I don't feel like being backwards compatible.

Can I designate more than one keyword?

Not at this time, but soon.

How do I use this thing?

I have provided one template tag for use in your theme. It is the smart_featured() tag. It takes 2 optional arguments. The first argument is $term and can be used to override the option set in WordPress admin. The second argument is $post_count and it designates the number of posts that should be returned as "featured". The default is 1. The Post Data is returned as a raw object, so you will need a little PHP to work this stuff out. That said, I've intentionally left it raw to find out what the community wants? If you provide some feedback, I can work it in - I just don't want to assume anything.