Advanced Query Loop

説明

このプラグインは、クエリループブロックのバリエーションを追加し、ユーザーがクエリーループブロックを使用してより複雑なクエリー (表示および投稿メタの数など) を実行できるようにします。

サポート / 不具合

サポートフォーラムまたは 公式リポジトリをご利用ください。質問や問題の記録に使用できます。

利用可能なコントロール

Taxonomy queries

Built complicated taxonomy queries!

複数の投稿タイプ

クエリーに追加する投稿タイプを選択してください!

Include Posts

Choose the posts you want to display manually or only the children of the current content.

Exclude current post

Remove the current post from the query.

Exclude posts by category

Choose to exclude posts from a list of categories.

投稿メタクエリー

meta_keymeta_value、および compare オプションに基づいてクエリーを作成できるインターフェイスを使用して、複雑な投稿メタクエリーを生成します。 複数のクエリを組み合わせて、結果を結合する (OR) か絞り込む (AND) かを決定します。

日付クエリー

Query items before/after the current or selected or choose to show the post from the last 1, 3, 6 and 12 months.

投稿の並び順コントロール

次の方法で昇順または降順に並べ替えます:

  • 作成者
  • 日付
  • 最終更新日
  • タイトル
  • メタ値
  • メタ値の数
  • ランダム
  • メニューの順序 (@jvanja に感謝)
  • Name (props @philbee)
  • 投稿 ID (@markhowellsmead に感謝)

これは既存の並べ替えコントロールと若干重複していることに注意してください。どちらも同じように機能しますが、UI では少し奇妙に見えます

Disable Pagination

Improve the performance of the query by disabling pagination.

スクリーンショット

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

評価

2025年2月6日
Thanks for this helpful plugin! I initially set out to build my own block variation because I only needed to add a sorting option for a custom meta field, and found this plugin when I started looking for developer resources. I can imagine that the Query Loop block can eventually be updated to include more custom meta options, seeing how the block bindings API is now bringing custom meta support to core blocks too.
2024年12月15日 1 reply
Excellent plugin – I am now even going to switch from Display Posts Shortcode plugin to this one. Gives more work for me but your job well done! Just left a feature request for excluding posts / pages / CPTs by ID – but it’s got nothing to do with how great this plugin is oterhwise.
2024年11月29日 1 reply
This plugin is absolutely amazing! I can’t understand why it’s not already part of the WordPress core—it’s that indispensable. It works flawlessly and makes everything so much easier. Huge kudos to the developers for such incredible work!
2024年11月17日 4 replies
The one thing I needed out of this was the offset option. Of all the things this plugin promises it will do, the one that is missing is the offset option.
19件のレビューをすべて表示

貢献者と開発者

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

貢献者

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

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

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

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

変更履歴

= 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.