Linux 软件免费装

Query from Content Shortcode

开发者 bbuster79
更新时间 2012年10月2日 03:38
PHP版本: 3.0 及以上
WordPress版本: 3.4.2
版权: GPLV2 or later
版权网址: 版权信息

标签

shortcode related posts custom post types featured image WP_Query custom query query shortcode

下载

01 0.1

详情介绍:

Query from Content (QFC) is a simple shortcode plugin that allows you to target exactly the posts you're looking for and list them in your post content. Further, you can specify your own header, include your current CSS styles to format the list, specify the number of results, and even display thumbnails and excerpts. The most basic format of QFC shortcode would look like: [qfc]Here is a Basic List[/qfc] The above shortcode would output a header reading "Here is a Basic List", below the header would be included your five latest posts, no formatting, no excerpt, no featured image. To customize your results, we can tell QFC to add some CSS as well as the posts' images and excerpts. That shortcode should be placed inside your post content like so: [qfc class="some-example-class" id="some-example-id" image="yes" excerpt="yes"]Some Bells and Whistles![/qfc] Also, you can choose to add more than one CSS class or id to your results by adding id's and classes using a comma seperated list: [qfc class="some-example-class, another-class" id="some-example-id, another-id" ]We Like CSS![/qfc] The Query from Content Shortcode can list more than just your most recent blog posts. You can specify tags, categories, post author, pages and even custom post types. Here's another quick example. This one specifies a tag, a category, and an author: [qfc category_name="Italian-recipes" tag="lasagna" author_name="Luigi"]Luigi's Fantastico Lasanga Recipes![/qfc] QFC reads the shortcode and passes the category, tag and author to the WP_Query class. If you are familiar with WP_Query, you'll recognize the QFC code matches exactly the parameters used with WP_Query. For more advanced users, QFC allows you dynamic access to all the most popular search features provided by WP_Query, just make sure the parameters you enter into the QFC shortcode match the exact spelling of WP_Query parameters. For more infomation on advanced usage of the Query From Content Shortcode plugin, visit the Wordpress codex page for WP_Query.

安装:

If you're downloading the Query From Content Shortcode plugin from you admin interface, all that is required is plugin activation. If you're downloading a zip file to your computer, just drop the contents into the wp-contents/plugins/ directory of your Wordpress installation and then active the plugin from your Plugins page.