説明
ノーコードでクエリーを強化します
標準のクエリループブロックの制限に物足りなさを感じていませんか ? 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 のコーディング標準に準拠
* 包括的なテスト: 信頼性を徹底的にテスト済み
始めよう
- プラグインをインストールして有効化
- 固定ページまたは投稿にクエリーループブロックを追加
- ブロックインサーター「Advanced Query Loop」のバリエーションを探します
- 直感的なコントロールでクエリを設定
- 動的コンテンツをプレビューして公開しましょう !
こんな方に最適
- ポートフォーリオ – 高度なフィルタリング機能で作品を展示
- ニュースや雑誌サイト – カテゴリーや日付によりコンテンツを表示
- ECサイト – カスタムフィールドやタクソノミーで商品をフィルタリング
- 教育プラットフォーム – コース、レベル、トピック別にコンテンツを整理
- 不動産サイト – 場所、価格、特徴で物件を絞り込む
- 高度なコンテンツ クエリーを必要とするあらゆるサイト – 可能性は無限大 !
評価
貢献者と開発者
変更履歴
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
noindexwas 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.



