Description
Boostez vos requêtes sans aucun code
Vous en avez assez des limites des blocs de boucle de requête standard ? Advanced Query Loop vous offre les super pouvoirs dont vous avez besoin pour créer des requêtes de contenu sophistiquées et dynamiques qui vont bien au-delà des fonctionnalités de base. Que vous construisiez un portfolio, un site d’actualités ou un hub de contenu complexe, cette extension vous permet de contrôler entièrement l’affichage de votre contenu.
Qu’est-ce qui rend Advanced Query Loop si spécial ?
- Aucune connaissance en codage n’est nécessaire – Tout fonctionne grâce à une interface visuelle intuitive
- Powerful query building – Create complex queries that would normally require custom code
- Flexible and extensible – Built with developers in mind, but accessible to everyone
- Performance optimized – Smart caching and efficient queries keep your site fast
Support et communauté
Besoin d’aide ? Nous sommes là pour vous aider !
- WordPress.org Support Forum: Get help here
- GitHub Repository: Report issues & contribute
Fonctionnalités puissantes à portée de main
🏷️ Requêtes de taxonomie avancées
Build sophisticated taxonomy queries that let you filter content by multiple categories, tags, or custom taxonomies. Create complex relationships between different taxonomy terms to display exactly the content you want.
📝 Plusieurs types de publication
Ne vous limitez pas aux seuls publications ! Lancez des requêtes simultanément sur plusieurs types de publications. Parfait pour les portfolios, les sites d’actualités ou tout site qui doit afficher ensemble différents types de contenu.
🎯 Inclusion intelligente de publications
Take full control over which posts appear in your query:
* Manual selection: Choose specific posts by title or ID
* Child items only: Show only child posts of the current content
* Dynamic filtering: Combine multiple inclusion rules
🚫 Exclusion intelligente de publications
Keep your queries clean and relevant:
* Exclude current post: Automatically hide the post being viewed
* Exclude a list of posts: Curate a list of posts to exclude from the query
* Category filtering: Exclude posts from specific categories
🔍 Requêtes avancées sur les métadonnées de publications
Create powerful meta queries without touching code:
* Multiple conditions: Combine different meta fields and values
* Flexible comparisons: Use equals, not equals, greater than, less than, and more
* Logical operators: Combine queries with AND/OR logic
* ACF integration: Works seamlessly with Advanced Custom Fields
📅 Requêtes dynamiques de date
Time-based content has never been easier:
* Relative dates: Show content from last 1, 3, 6, or 12 months
* Before/after current: Display content relative to the current date
* Custom date ranges: Set specific start and end dates
* Multiple date conditions: Combine different date rules
📊 Options de tri flexible
Sort your content exactly how you want:
* Author: Sort by post author
* Date: Sort by publication date
* Last Modified: Sort by last update
* Title: Alphabetical sorting
* Meta Values: Sort by custom field values
* Random: Shuffle your content
* Menu Order: Use custom ordering
* Name: Sort by post slug
* Post ID: Sort by post ID
* Comment Count: Sort by engagement
⚡ Optimisation des performances
- Smart pagination: Automatically disable pagination when not needed
- Efficient queries: Optimized database queries for better performance
- Caching friendly: Works seamlessly with popular caching plugins
Personnalisation & extensibilité
Filtrer les contrôles disponibles
Don’t need all the features? No problem! You can easily hide specific controls using the aql_allowed_controls filter:
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 );
} );
}
);
Identifiants de contrôle disponibles
'additional_post_types'– Multiple post type selection'taxonomy_query_builder'– Advanced taxonomy queries'post_meta_query'– Meta field queries'post_order'– Sorting options'exclude_current_post'– Current post exclusion'include_posts'– Manual post inclusion'child_items_only'– Child post filtering'date_query_dynamic_range'– Date range queries'date_query_relationship'– Date query logic'pagination'– Pagination controls
Pensé pour les développeurs/développeuses
Advanced Query Loop is built with developers in mind:
* Extensible architecture: Add your own custom controls
* Well-documented hooks: Easy integration with your themes and plugins
* Clean code: Follows WordPress coding standards
* Comprehensive testing: Thoroughly tested for reliability
Premiers pas
- Install and activate the plugin
- Add a Query Loop block to your page or post
- Look for the « Advanced Query Loop » variation in the block inserter
- Configure your query using the intuitive controls
- Prévisualisez et publiez votre contenu dynamique !
Parfait pour
- Portfolio websites – Showcase work with sophisticated filtering
- News and magazine sites – Display content by category, date, and more
- E-commerce sites – Filter products by custom fields and taxonomies
- Educational platforms – Organize content by course, level, or topic
- Real estate sites – Filter properties by location, price, and features
- Tout site nécessitant des requêtes de contenu avancées – Les possibilités sont infinies !
Captures d’écrans
Avis
Contributeurs/contributrices & développeurs/développeuses
« Advanced Query Loop » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
Contributeurs“Advanced Query Loop” a été traduit dans 8 locales. Remerciez l’équipe de traduction pour ses contributions.
Traduisez « Advanced Query Loop » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Journal des modifications
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
- Des petits correctifs de bogues grace à @gvgvgvijayan
4.0.0
- Introducing the new Taxonomy Builder!
- Show children of current item only.
- Adds before and after current date controls
- Nettoyer l’expérience utilisateur.
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 )
- Corrige une erreur dans le tri par libellé.
- 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.



