内容をスキップ
WordPress.org

日本語

  • テーマ
  • プラグイン
  • ニュース
  • サポート
    • ドキュメンテーション
    • フォーラム
  • 概要
  • 参加・貢献
  • このサイトについて
  • WordPress を入手
WordPress を入手
WordPress.org

Plugin Directory

Advanced Query Loop

  • プラグインを申請
  • お気に入り
  • ログイン
  • プラグインを申請
  • お気に入り
  • ログイン

Advanced Query Loop

作者: Ryan Welcher
ダウンロード
ライブプレビュー
  • 詳細
  • レビュー
  • 開発
サポート

説明

ノーコードでクエリーを強化します

標準のクエリループブロックの制限に物足りなさを感じていませんか ? Advanced Query Loop は基本機能を大きく超える、洗練された動的なコンテンツクエリーを作成するために必要なスーパーパワーを提供します。ポートフォーリオ、ニュースサイト、複雑なコンテンツハブなど、どんなサイトを構築する場合でも、このプラグインを使えばコンテンツの表示を完全にコントロールできます。

Advanced Query Loop の特徴は何ですか ?

  • コーディング不要 – すべてが直感的なビジュアルインターフェースで操作
  • 強力なクエリー構築 – 通常はカスタムコードが必要となる複雑なクエリーを作成
  • 柔軟性と拡張性 – 開発者を念頭に設計されながら、誰もが使いやすい
  • パフォーマンスの最適化 – スマートなキャッシュと効率的なクエリーにより、サイトの速度を維持

サポートとコミュニティ

お困りですか ? サポートします !

  • WordPress.org サポートフォーラム: ヘルプはこちら
  • GitHub リポジトリ: 問題の報告や貢献はこちら

強力な機能をすぐに活用できます

🏷️ 高度なタクソノミークエリー

複数のカテゴリー、タグ、またはカスタム分類でコンテンツをフィルタリングできる高度な分類クエリーを構築できます。

📝 複数の投稿タイプ

投稿だけに限定する必要はありません ! 複数の投稿タイプを同時にクエリーできます。ポートフォーリオ、ニュースサイト、または異なるタイプのコンテンツをまとめて表示する必要があるサイトに最適です。

🎯 スマートな投稿の組み込み

クエリに表示する投稿を完全に制御できます:
* 手動選択: タイトルまたは ID で特定の投稿を選択
* 子アイテムのみ: 現在のコンテンツの子投稿のみ表示
* 動的フィルタリング: 複数を含める条件を組み合わせる

🚫 インテリジェントな投稿除外

クエリは簡潔で関連性のあるものにしましょう:
* 現在の投稿を除外: 表示中の投稿を自動的に非表示
* 投稿リストを除外: クエリから除外する投稿リストを作成
* カテゴリフィルタリング: 特定のカテゴリの投稿を除外

🔍 高度な投稿メタクエリー

ノーコードで強力なメタクエリを作成できます:
* 複数の条件: 異なるメタフィールドと値を組み合わせる
* 柔軟な比較: 等しい、等しくない、より大きい、より小さいなど、さまざまな条件
* 論理演算子: AND/OR ロジックを使用してクエリを組み合わせる
* ACF との連携: Advanced Custom Fields とシームレスに連携

📅 動的な日付のクエリー

時間に基づいたコンテンツ表示がこれまでになく簡単になります:
* 相対日付: 過去1か月、3か月、6か月、または12か月間のコンテンツを表示
* 現在より前 / 後: 現在の日付を基準にコンテンツを表示
* カスタム日付範囲: 特定の開始日と終了日を設定
* 複数の日付条件: 異なる日付の条件を組み合わせる

📊 柔軟な並べ替えオプション

コンテンツを思い通りに並べ替えましょう:
* 投稿者: 投稿者で並べ替え
* 日付: 公開日で並べ替え
* 最終更新: 最終更新日で並べ替え
* タイトル: アルファベット順で並べ替え
* メタ値: カスタムフィールドの値で並べ替え
* ランダム: コンテンツをシャッフル表示
* メニューの順: カスタム順序を使用
* 名前: 投稿スラッグで並べ替え
* 投稿 ID: 投稿 ID で並べ替え
* コメント数: エンゲージメントで並べ替え

⚡パフォーマンスの最適化

  • スマートなページ送り: 必要ないときは自動的にページ送りを無効化
  • 効率的なクエリー: パフォーマンス向上のために最適化されたデータベースクエリー
  • Caching friendly: 一般的なキャッシュプラグインとシームレスに連携

カスタマイズと拡張性

利用可能なコントロールで絞り込む

すべての機能が必要ありませんか ? 問題ありません ! aql_allowed_controls フィルターを使えば特定のコントロールを簡単に非表示にすることができます。

add_filter(
    'aql_allowed_controls',
    function( $controls ) {
        // Remove specific controls you don't need
        $to_exclude = array( 'additional_post_types', 'taxonomy_query_builder' );
        return array_filter( $controls, function( $control ) use ( $to_exclude ) {
            return ! in_array( $control, $to_exclude, true );
        } );
    }
);

利用可能なコントロール識別子

  • 'additional_post_types' – 複数の投稿タイプを選択
  • 'taxonomy_query_builder' – 高度なタクソノミークエリー
  • 'post_meta_query' – メタフィールドクエリー
  • 'post_order' – 並べ替えオプション
  • 'exclude_current_post' – 現在の投稿を除外
  • 'include_posts' – 手動で投稿を追加
  • 'child_items_only' – 子投稿のフィルタリング
  • 'date_query_dynamic_range' – 日付範囲クエリー
  • 'date_query_relationship' – 日付クエリーのロジック
  • 'pagination' – ページ送りコントロール

開発者向け

Advanced Query Loop は開発者向けに設計されています:
* 拡張可能なアーキテクチャ: 独自のカスタムコントロールを追加
* 十分にドキュメント化されたフック: テーマやプラグインとの統合が簡単
* クリーンなコード: WordPress のコーディング標準に準拠
* 包括的なテスト: 信頼性を徹底的にテスト済み

始めよう

  1. プラグインをインストールして有効化
  2. 固定ページまたは投稿にクエリーループブロックを追加
  3. ブロックインサーター「Advanced Query Loop」のバリエーションを探します
  4. 直感的なコントロールでクエリを設定
  5. 動的コンテンツをプレビューして公開しましょう !

こんな方に最適

  • ポートフォーリオ – 高度なフィルタリング機能で作品を展示
  • ニュースや雑誌サイト – カテゴリーや日付によりコンテンツを表示
  • ECサイト – カスタムフィールドやタクソノミーで商品をフィルタリング
  • 教育プラットフォーム – コース、レベル、トピック別にコンテンツを整理
  • 不動産サイト – 場所、価格、特徴で物件を絞り込む
  • 高度なコンテンツ クエリーを必要とするあらゆるサイト – 可能性は無限大 !

スクリーンショット

  • 表示する投稿の数と開始する投稿の位置を選択します。
  • 登録済み投稿メタ.xを使用して投稿タイプの複雑なクエリを作成します
  • 日付以前、日付以降、または2つの日付の間の投稿を抽出します。

評価

Excellent addition to the Query block

Mark Wilkinson 2025年10月15日
This is a brilliant plugin the surfaces all of the additional options that are often needed for the query block. If you find yourself needing to exclude categories from queries, build more complex taxonomy queries or even build meta queries it is a must have. Thanks so much for making this available to everyone Ryan and well done on a great plugin.

Make this part of Core!

proximitas 2025年8月20日
This plugin is solving the issue I have spent all morning trying to figure out: Excluding Certain Categories from the Query Loop block. The options this plugin adds to the core query loop block are brilliant and I don’t understand how WordPress missed it. I have only scratched the surface of this plugin and I’m sure I will discover more as I dive into the nuances of this plugin.Brilliant, Simply Brilliant!

A very good approach

yarsel 2025年8月12日
This is pretty useful to extend/replace the ability of the core query block and it works like a charm with the block theme’s post patterns as well.

idea is good – still testing out functionality

playwithtoy 2025年8月7日 6 replies
pls note the CPT must have ‘public’ and ‘show_in_rest’ args set to true i would give an additional half star if i could to excellent customer service and explanation by plugin author

AWESOME

genepine 2025年7月5日
Using Meta values, I was able to very easily sort posts in ACF calendar order, for example by birthday, and in Japanese alphabetical order.

Everything I need

iandamy 2025年4月8日
I use WordPress to run a custom site with multiple taxonomies. It lets me filter posts based on various conditions, making content organization fast and efficient. With custom taxonomies, I can sort posts by genre, mood, artist, or any category I define. WordPress handles complex filtering without slowing down the site. It’s flexible, reliable, and perfect for content-rich projects.
26件のレビューをすべて表示

貢献者と開発者

Advanced Query Loop はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者
  • Ryan Welcher

“Advanced Query Loop” は8ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Advanced Query Loop” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログを RSS で購読してみてください。

変更履歴

4.3.0

  • Exclude posts (props @darylldoyle, @Pulsar-X).
  • Updated Post Meta Query UI
  • Fixed showing child pages only.

4.2.0

  • Fix taxonomy pagination limit (props @NickOrtiz).
  • Allow controls to be filtered at the code level.

4.1.2

  • Harden up the code to remove a warning.
  • Resurrect the disable pagination toggl

4.1.1

  • Allow extended orderby values for all publicly queryable post types (props @ocean90)
  • Decode entities in the FormTokenField for post inclusion.
  • Fix post type merge issue to retain default post type on frontend (props @mehidi258)

4.1.0

  • The control for Pagination controls has been removed and now is automatically enabled/disabled based whether the Pagination block is in the template.
  • Bug fixes.

4.0.2

  • Bug fixes

4.0.1

  • A few small bug fixes courtesy of @gvgvgvijayan

4.0.0

  • Introducing the new Taxonomy Builder!
  • Show children of current item only.
  • Adds before and after current date controls
  • Clean up the UI.

3.2.0

  • Adds the ability to exclude posts by category (props @ghost-ng)
  • Adds the ability to disable pagination.
  • Deprecate controls that were moved into the Query Loop block in Gutenberg 19.
  • Fix fatal error when post include array was empty.

3.1.1

  • Add better SVG that works in all usages
  • Change ranges to allow to not include the current date
  • Trim whitespace from title.rendered

3.1.0

  • Add dynamic date ranges to see posts from the last 1, 3, 6 and 12 months.
  • Insert a new instance by typing “AQL” or “aql” and pressing enter.
  • Adds sorting by Name (props @philbee).
  • Bug fixes.

3.0.1

  • Addresses some PHP fatal errors caused by type hinting.

3.0.0

  • Add Sorting by Included Posts IDs.
  • Add sorting by Comment Count.
  • Major restructure for processing the query params.
  • Add release-drafter workflow.

2.2.5

  • Fixes issue with Exclude Current Post not being correctly set on templates.

2.2.4

  • Fixes an issue with the Exclude Current Post toggle causing the block to crash in some circumstances

2.2.3

  • Adds a Include Posts tool to allow manual curation of content to display (@props jenniferfarhat)

2.1.3

  • Fixes issues in PHP 8 and the date query. (props @krokodok)

2.1.2

  • Fixes issue with empty search parameter causing incorrect template to load (props @StreetDog71)
  • Fixes issue with all post type not being loaded ( props @aaronware)

2.1.1

  • Fixes issue with multiple AQL instances having settings leaked to each other.

2.1.0

  • ACF custom fields now show in the auto-complete dropdown list for Post Meta Queries ( props to @jvanja )
  • Adds sort by Post ID ( props to @markhowellsmead )
  • Fixes a typo in the Order By label.
  • Fixes a bug where a second AQL instances was getting post meta query values from the first.

2.0.0

  • Due to a change in core, Post Count can no longer be overridden when the block is set to inherit the query.
  • Adds Exclude current post option. Props to @Pulsar-X
  • Bump Tested Up To for 6.4
  • Adds better instructions for creating extension plugins.

1.5.1

  • Adds EXISTS as a compare option for Post Meta Queries.

1.5

  • Moves all controls into a single panel titled “Advanced Query Settings”.
  • Exposes SlotFills and filters to allow extension of plugin to add any featured you want.
  • Minor PHP warning fixes.

1.4.3

  • Addresses translations from https://translate.wordpress.org/ not loading. HUGE thank you to @himaartwp for opening the issue and to everyone that helped with the Japanese translation!
  • Fixes minor php warnings in the editor

1.4.2

  • Addresses an issue where noindex was being added incorrectly due to an empty parameter. Props to @pedjas for reporting.
  • Small fixes to address some PHP warnings.

1.4.1

  • Small fixes to address some PHP warnings.

1.4.0

  • Adds Menu Order to the sort by options. Props to @jvanja for the Pull Request *

1.3.0

  • Adds support for sorting by Meta Value, Meta Value Num, and Random.
  • Adds transform to convert existing Query Loop instances into Advanced Query Loop blocks.
  • Adds a release command.
  • Adds support for querying multiple post types.

1.2.1

  • Fixes missing controls when not inheriting the query. Props to @cvladan for opening the support thread.

1.2.0

  • Introduce Post Order controls to sort by Author, Date, Last Modified Date, or Title in ascending or descending order. Props to @asterix for the suggestion of adding Last Modified Date.
  • Enable Post Count and Post Order controls even when inheriting the query.

1.1.0

  • Allow manual input of post meta. Props to @svenl77 for opening the support thread.

1.0.5

  • PRO TIP: Include the PHP files when you release the plugin :/

1.0.4

  • Adds custom icon.
  • Under the hood restructuring of code.

1.0.3

  • Small fix for PHP 8. Props to @markus9312 for opening the support thread.

1.0.2

  • Fix various PHP notices. Props to @wildworks for opening the support thread.
  • Add some information to the readmes.

1.0.1

  • Small fix to no longer show an empty pattern after inserting the block.

1.0.0

  • Initial release with support for post count, offset, post meta, and date queries.

メタ

  • バージョン 4.3.0
  • 最終更新日 7日前
  • 有効インストール数 5,000+
  • WordPress バージョン 6.2またはそれ以降
  • 検証済み最新バージョン: 6.9.1
  • PHP バージョン 7.4またはそれ以降
  • 言語

    Chinese (China)、English (US)、French (France)、Italian、Japanese、Portuguese (Portugal)、Spanish (Chile)、Spanish (Spain)、Swedish.

    プラグインを翻訳

  • タグ
    advanced queriespost metaquery looptaxonomy
  • 詳細を表示

評価

5つ星中4.7つ星
  • 23 5-星レビュー 5つ星 23
  • 1 4-星レビュー 4つ星 1
  • 1 3-星レビュー 3つ星 1
  • 0 2-星レビュー 2つ星 0
  • 1 1-星レビュー 1つ星 1

レビューを追加

すべてのレビューを見る

貢献者

  • Ryan Welcher

サポート

過去2ヶ月以内に解決した問題:

1 / 5

サポートフォーラムを表示

  • WordPress とは
  • ニュース
  • ホスティング
  • プライバシー
  • ショーケース
  • テーマ
  • プラグイン
  • パターン
  • Learn
  • サポート
  • 開発者
  • WordPress.tv ↗
  • 参加・貢献
  • イベント
  • 寄付 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

日本語

  • X (旧 Twitter) アカウントへ
  • Bluesky アカウントへ
  • Mastodon アカウントへ
  • Threads アカウントへ
  • Facebook ページへ
  • Instagram アカウントへ
  • LinkedIn アカウントへ
  • TikTok アカウントへ
  • YouTube チャンネルへ
  • Tumblr アカウントへ
Code is Poetry.
The WordPress® trademark is the intellectual property of the WordPress Foundation. WordPress® is not the same thing as WP Engine®. Since October 2024, WordPress.org’s creator Matt Mullenweg is a defendant in a legal action from WP Engine®. The WordPress Hosting page does not recommend WP Engine®.