Title: Query Blocks
Author: Isamu Takeda
Published: <strong>2025 年 1 月 26 日</strong>
Last modified: 2026 年 1 月 27 日

---

搜尋外掛

![](https://ps.w.org/query-blocks/assets/banner-772x250.png?rev=3228625)

![](https://ps.w.org/query-blocks/assets/icon-256x256.png?rev=3228625)

# Query Blocks

 由 [Isamu Takeda](https://profiles.wordpress.org/itmaroon/) 開發

[下載](https://downloads.wordpress.org/plugin/query-blocks.1.1.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/query-blocks/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/query-blocks/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/query-blocks/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/query-blocks/#developers)

 [技術支援](https://wordpress.org/support/plugin/query-blocks/)

## 外掛說明

When you install this plugin, the following four blocks are registered and can be
used not only in the block editor but also in the site editor.

 1. Post Pickup
     Provides a function to pick up WordPress post data. Internally, it
    generates a subquery to extract data from the database. The extracted data is selected
    by selecting the post type and term, and the required fields are rendered by selecting
    the field. Custom fields can also be selected.
 2. Post Filter
     This block provides a UI for users to filter Post Pickups specified
    by ID. There are three types of filtering:

– Provides a filtering function by string search. The search targets are title, 
excerpt, and body text, but custom fields can also be targeted by selecting an option.
–
Provides a filtering function for data posted within a set period. The period can
be set to three types: year, month, and day. – Provides a filtering function by 
terms set in posts. The terms to be filtered are selected by selecting the taxonomy
associated with the post type.

 1. Post Pagination
     This block provides pagination display of Post Pickup specified
    by ID. Two types are available: one that displays the page number and one that 
    moves to the previous or next page. The type that displays the page number has 
    Design Button as an inner block, and the type that moves to the previous or next
    page has Design Title as an inner block. Various customizations are possible by
    utilizing the design functions of these custom blocks.
 2. Post Crumbs
     This block displays the filtering information of Post Pickup specified
    by ID in the form of a breadcrumb list. The filtering information is based on filtering
    by Post Filter and is displayed as the text of Design Title. Therefore, various
    customizations are possible by using the design function of Design Title. In addition,
    when Post Pickup is displayed as a single post, the title of the post is also displayed
    in addition to the filtering information.

### Related Links

 * [query-blocks:Github](https://github.com/itmaroon/query-blocks)
 * [block-class-package:GitHub](https://github.com/itmaroon/block-class-package)
 * [block-class-package:Packagist](https://packagist.org/packages/itmar/block-class-package)
 * [itmar-block-packages:npm](https://www.npmjs.com/package/itmar-block-packages)
 * [itmar-block-packages:GitHub](https://github.com/itmaroon/itmar-block-packages)

### Arbitrary section

 1. PHP class management is now done using Composer.
     [GitHub](https://github.com/itmaroon/block-class-package)
    [Packagist](https://packagist.org/packages/itmar/block-class-package)
 2. I decided to make functions and components common to other plugins into npm packages,
    and install and use them from npm.
     [npm](https://www.npmjs.com/package/itmar-block-packages)
    [GitHub](https://github.com/itmaroon/itmar-block-packages)

### External services

This plugin connects to the API to get holiday information. This is necessary to
display the names of holidays in the displayed calendar.
 This service is provided
by “Google LLC”. The terms of use and privacy policy are available at the following
links: [Google API Services User Data Policy](https://developers.google.com/terms/api-services-user-data-policy?hl=ja)
[Google Calendar Partner Program Terms of Use](https://www.google.co.jp/googlecalendar/partner_program_policies.html)
[Google Privacy Policy](https://policies.google.com/privacy?hl=ja) [Google Calendar Privacy Basics](https://support.google.com/calendar/answer/10366125?hl=ja)

## 螢幕擷圖

 * [[
 * Display multiple posts in Post Pickup
 * [[
 * Display posts in order of popularity with Post Pickup
 * [[
 * Display filtering information in breadcrumb format with Post Crumbs
 * [[
 * Post Filter filter setting screen (period filter is displayed by month)
 * [[
 * Post Filter filter setting screen (period filter is displayed by year)
 * [[
 * Post Filter filter setting screen (period filter is displayed by day)
 * [[
 * Post Pagination page number display
 * [[
 * Post Pagination forward/backward navigation

## 適用於區塊編輯器

這個外掛提供 4 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Pickup Posts
 *   Post Filter
 *   Post Crumbs
 *   Post Pagenation

## 安裝方式

 1. From the WP admin panel, click “Plugins” -> “Add new”.
 2. In the browser input box, type “Query Blocks”.
 3. Select the “Query Blocks” plugin and click “Install”.
 4. Activate the plugin.

OR…

 1. Download the plugin from this page.
 2. Save the .zip file to a location on your computer.
 3. Open the WP admin panel, and click “Plugins” -> “Add new”.
 4. Click “upload”.. then browse to the .zip file downloaded from this page.
 5. Click “Install”.. and then “Activate plugin”.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Query Blocks〉的開發相關工作。

參與者

 *   [ Isamu Takeda ](https://profiles.wordpress.org/itmaroon/)

[將〈Query Blocks〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/query-blocks)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/query-blocks/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/query-blocks/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/query-blocks/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/query-blocks/)。

## 變更記錄

#### 1.1.2

 * We have taken performance into consideration by limiting the process of rewriting
   the block contents to only when there is a change in the block contents.

#### 1.1.1

 * Added a data-post-id attribute to each DOM element of front-end post data to 
   record the post ID.

#### 1.1.0

 * Regarding the method of loading composer components, a mechanism has been introduced
   that does not conflict with other plugins. Accordingly, the composer components
   have been updated.
 * Operation check with WordPress 6.8

#### 1.0.2

 * Fixed the issue where the icon inverted display was not displayed properly when
   selecting a block.

#### 1.0.1

Fixed a bug in Post Pickup where the selection button was not displayed when the
featured image was not set for the first post.

#### 1.0.0

 * Release

## 中繼資料

 *  版本 **1.1.2**
 *  最後更新 **4 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 8.1.22 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/query-blocks/)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[field](https://tw.wordpress.org/plugins/tags/field/)
   [post](https://tw.wordpress.org/plugins/tags/post/)[query](https://tw.wordpress.org/plugins/tags/query/)
   [taxsonomy](https://tw.wordpress.org/plugins/tags/taxsonomy/)
 *  [進階檢視](https://tw.wordpress.org/plugins/query-blocks/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/query-blocks/reviews/)

## 參與者

 *   [ Isamu Takeda ](https://profiles.wordpress.org/itmaroon/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/query-blocks/)