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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://zh-hk.wordpress.org/plugins/query-posts/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/query-posts/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/query-posts/#installation)
 * [開發](https://zh-hk.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.⌉⌊View of the Query Posts widget settings
.⌉[

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/791b9a7857034ead37df1baef8c05607f9ba1ee80b4f5a1b2f6c97518a01367f?
s=60&d=retro&r=g)

### 󠀁[Abandoned plugin](https://wordpress.org/support/topic/abandoned-plugin-117/)󠁿

 [letto1](https://profiles.wordpress.org/letto1/) 2026年7月8日

Doesn’t work past PHP 7.4. The plugin has been abandoned. Unfortunately my site 
relied on it and I’ve spent a year paying my host for extended PHP support before
I was able to figure out how to replace it. While I really appreciate developers
that create free plugins, it can be really difficult when they abandon them. It 
should probably be removed from the plugin database so more people don’t get stuck
in this trap.

![](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.

 [ 閱讀全部4個評價 ](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!

## 其它

 *  Version **0.3.2**
 *  Last updated **9 年之前**
 *  Active installations **700+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.0.5**
 *  Languages
 * [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)
 * Tags
 * [page](https://zh-hk.wordpress.org/plugins/tags/page/)[pages](https://zh-hk.wordpress.org/plugins/tags/pages/)
   [posts](https://zh-hk.wordpress.org/plugins/tags/posts/)[sidebar](https://zh-hk.wordpress.org/plugins/tags/sidebar/)
   [widget](https://zh-hk.wordpress.org/plugins/tags/widget/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/query-posts/advanced/)

## 評分

 3 out of 5 stars.

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

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

[See all reviews](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)