Linux 软件免费装

Select Featured Post

开发者 mediology
kapilchugh
更新时间 2010年11月18日 13:57
PHP版本: 2.8 及以上
WordPress版本: 3.0

标签

post wordpress ajax featured featured post

下载

0.2

详情介绍:

A plugin which allows you to select/unselect posts and updates the same using Ajax.This allows you to mark the selected post as featured post and hence enables editors, publishers, bloggers etc to feature relavent content on the site. In most content publishing scenarios, where there are a large set of contributors, certain posts require to be featured in relevant content sections of your WP site, so that they draw the maximim attention span from the readers. This Plugin allows the editors or administrators to mark a set of posts as featured posts. Then using a simple functional call in your theme, you can dynamically display the featured posts. The featured post selection is also available as a widget, if you want to place it separatly. We would be keen you hear your feedback and requests for any enhancements. Please send your feedback to wordpress@mediologysoftware.com.

安装:

  1. Upload the select-featured-posts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to the Posts -> Posts screen if you have wordpress 3.0 and for older versions go to Posts -> Edit.
  4. Check and uncheck posts to make it featured/unfeatured
  5. To use it in theme add this before query_posts or get_posts if (function_exists('featured_posts')) { featured_posts('add'); }
  6. To remove the featured post from the query post buffer once the same have been displayed add this code if (function_exists('featured_posts')) { featured_posts('remove'); }
For eg. if (function_exists('featured_posts')) { featured_posts('add'); } query_posts('category_name=Entertainment'); // Hence now that the featured posts have been displayed clear them so that they don't get repeated. if (function_exists('featured_posts')) { featured_posts('remove'); } So it will give featured post of Entertainment Category. OR
  1. If you want to get Featured post IDs only then use this if (function_exists('get_featured_posts')) { $limit = 5; $featured_posts = get_featured_posts($limit); }
  2. If your theme supports widgets then go to Appearance -> Widgets and just Drag and Drop Select Featured Post Widget.
  3. In widget you can specify total no of posts or Featured Post of a Category. == Frequently Asked Questions == Please send us your questions to wordpress@mediologysoftware.com. We will feature the frequently asked questions and answers here. == Screenshots ==
  4. Select Featured post checkbox in the Admin panel
  5. Widget Display. == Changelog ==
0.1