开发者 | technosailor |
---|---|
更新时间 | 2012年4月24日 06:01 |
PHP版本: | 2.7-RC1 及以上 |
WordPress版本: | 2.7-RC1 |
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.
Not at this time, but soon.
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.