Title: Query Posts
Author: Justin Tadlock
Published: <strong>2009 年 3 月 15 日</strong>
Last modified: 2010 年 11 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/query-posts.svg)

# Query Posts

 作者：[Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[下载](https://downloads.wordpress.org/plugin/query-posts.0.3.2.zip)

 * [详情](https://cn.wordpress.org/plugins/query-posts/#description)
 * [评价](https://cn.wordpress.org/plugins/query-posts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/query-posts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/query-posts/#developers)

 [支持](https://wordpress.org/support/plugin/query-posts/)

## 描述

The _Query Posts_ widget was written to allow users that don’t know their way around
PHP to easily show posts in any way they’d like. It’s like having a cool WordPress
developer as a friend ready to do your bidding. Seriously.

The widget has over 40 options to choose from. You can list posts by category, tag,
custom taxonomies, author, date, time, name, or anything you can imagine. You can
choose to show the full content, excerpts, or even a simple list. You can order 
the posts in all sorts of ways. Oh, and you can even show pages.

This is the widget that keeps users out of the code and gives them the ability to
display items on their site how they want.

## 屏幕截图

 * [[
 * View of the _Query Posts_ widget settings.

## 安装

 1. Upload `query-posts` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the _Plugins_ menu in WordPress.
 3. Go to _Appearance > Widgets_ and place the _Query Posts_ widget where you want.

More detailed instructions are included in the plugin’s `readme.html` file.

## 常见问题

  Installation Instructions

 1. Upload `query-posts` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the _Plugins_ menu in WordPress.
 3. Go to _Appearance > Widgets_ and place the _Query Posts_ widget where you want.

More detailed instructions are included in the plugin’s `readme.html` file.

  Why was this plugin created?

End users sometimes want to do complicated things but don’t nave the technical _know-
how_ of seasoned developers. This creates a massive barrier between users that can
have _really_ cool sites and those that have to use what their theme developer gave
them.

This plugin is about removing that barrier.

  How do I set it up?

There’s not a lot of work you have to do. Just add the widget to your theme’s widget
area(s). If anything, you’ll probably be overwhelmed by the myriad of options. I’ve
included a handy guide on what each option means with supplemental reading material.
Just check out the `readme.html` included with the plugin download.

## 评价

![](https://secure.gravatar.com/avatar/3d71436a8733afd77f5d8fc1cf03f943bbdc9cbb4e78ec644a287fe0ecb5f089?
s=60&d=retro&r=g)

### 󠀁[Mostly works, but uses deprecated calls & not compatible with PHP7, abandoned](https://wordpress.org/support/topic/mostly-works-but-uses-deprecated-calls-not-compatible-with-php7-abandoned/)󠁿

 [Marty](https://profiles.wordpress.org/bozzmedia/) 2018 年 4 月 13 日

This can get the job done in a pinch, but the plugin is not updated or supported
any longer and has the above mentioned issues. Best to look for a more up to date
plugin to fill this job.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/query-posts/reviews/)

## 贡献者及开发者

「Query Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

「Query Posts」插件已被翻译至 5 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/query-posts/contributors)
为本插件所做的贡献。

[帮助将「Query Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/query-posts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/query-posts/)，查看[SVN仓库](https://plugins.svn.wordpress.org/query-posts/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/query-posts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/query-posts/)。

## 更新日志

**Version 0.3.2**

 * Clean up of debug notices.
 * Only show thumbnail settings if theme supports post thumbnails or the `get_the_image()`
   function is present.
 * Apply widget title filters to the widget title.
 * Better escaping of widget settings form elements.

**Version 0.3.1**

 * Fix post types so individual IDs work.
 * Fix `enable_widget_title` for some instances where it didn’t work.
 * Fix `post_class` issue for the instances where it didn’t work.
 * Make sure correct image size is used.
 * Only use `post_mime_type` when it’s set.
 * Use `tag` instead of `tag_slug__in` for the post tag taxonomy.

**Version 0.3**

 * Completely redesigned the entire widget to just work better.
 * Important! Users will likely have to reset any instances of the Query Posts widget
   in use.

**Version 0.2.1**

 * Fixed the checkbox issue where it didn’t save on widget settings update.

**Version 0.2**

 * Recoded the widget from the ground up to use WP 2.8’s new widget class. Users
   will likely need to reset each widget instance because of this.
 * Fixes bug in WP 2.8 where more than one _Query Posts_ widget wouldn’t display.
 * Dropped support for versions of WP below 2.8.
 * New setting: `post_type`.
 * New setting: `post_status`.
 * Added ability to show posts in ordered list as well as the normal unordered list.
 * Hover tooltips to explain what each setting means.
 * Added support for custom taxonomies created by users and other plugins for posts.

**Version 0.1**

 * This is version 0.1. Everything’s new!

## 额外信息

 *  版本 **0.3.2**
 *  最后更新：**9 年前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/query-posts/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/query-posts/)、
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/query-posts/) 、 [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/query-posts/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/query-posts/) 和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/query-posts/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/query-posts)
 * 标签
 * [page](https://cn.wordpress.org/plugins/tags/page/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/query-posts/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/query-posts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/query-posts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/query-posts/reviews/)

## 贡献者

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/query-posts/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3687060)