Linux 软件免费装

Get Posts

开发者 nurelm
更新时间 2013年12月24日 03:39
PHP版本: 2.5.1 及以上
WordPress版本: 3.8

标签

post posts shortcode list formatting get_posts

下载

0.1 0.2 0.3 0.4 0.5 0.6

详情介绍:

This plugin adds the ability to put a shortcode tag in any static page or post and have it display a list of posts using the get_posts template tag. For more detailed information about this plugin, please check out its home page. By default it will show the 5 most recent posts ordered in reverse date order, but it will accept any of the options provided by the get_posts template tag. To use it, just put the following into the HTML of any page or post, use as many times as you like on the same page: [get_posts] This default usage will return the last 5 posts in reverse chronological order. Along with all the options provided by the get_posts template tag, it will also accept a few additional options: A couple of examples: [get_posts tag="my favorite tag" numberposts=5 orderby="title] Shows a bulleted list consisting of the titles of 5 posts with the tag "my favorite tag" ordered by title. [get_posts tag="my favorite tag" fields="post_title, post_date, post_excerpt, post_featured_image, custom_text" fields_classes="class1, class2, class3, class4, class5" fields_make_link="true, false, false, false, true", custom_text_value="Read More"] Shows a bulleted list consisting of the titles, post dates, and excerpts of posts with the tag "my favorite tag". The title will be wrapped in a tag with a class of "class1", the date with a of class "class2", and the excerpt with "class3". Only the title will provide a link to the post. Also shows the post's featured image (in thumbnail size) and "Read More". Check the get_posts template tag documentation for all of the possible options associated with the tag, and the wp_posts database table fields for all possible field names.

安装:

  1. Upload the plugin to the /wp-content/plugins/ directory and unzip it.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Place [get_posts] in your pages. Check the plugin homepage for detailed options and more complex uses.

更新日志:

0.6 0.5 0.4 0.3 0.2 0.1