November 2, 2020 — È molto facile salvare le informazioni nel database di WordPress, tanto che non ce ne accorgiamo nemmeno. Lo facciamo quasi inconsciamente quando ci muoviamo come un pesce nell’acqua attraverso il WordPress Manager premendo i pulsanti, configurando i plugin o aggiornando gli stati dell’ordine.
Ma, come possiamo fare per recuperare manualmente quei dati e modellarli per un successivo utilizzo nei nostri progetti?
WordPress ci offre diversi strumenti per accedere al database in modo sicuro, ma senza dubbio la classe WP_Query sarà il nostro miglior alleato per tuffarci nel mare dei dati.
In questo discorso spiegherò cos’è e come si può usare WP_Query, una delle più grandi e potenti classi di WordPress per estrarre informazioni preziose dal database.
May 30, 2020 — In this session, Joseph will introduce you to WP_Query and how it can be used to solve simple and complex content challenges alike.
October 11, 2019 — WP Query is one of the most important components of WordPress. Learn how to create custom loops in order to fetch the information you need so that you can fine tune a query of posts for your specific scenario.
August 11, 2018 — Přednáška od Davida Biňovce na téma WP_Query.
August 30, 2017 — We live inside the boundaries of The Loop. As an intrinsic part of WordPress, does it mystify you? Are you feeling a bit stuck in there? Want to expand its limits? In this talk, we’ll go over what the loop is all about as well as learn more about the creative possibilities of customizing what data you’re retrieving through the use of WP_Query to write your very own queries and loops.
January 4, 2017 — This talk will cover how to use the WP_Query() method to write queries and loops for just about anything in WordPress, including queries like:
Getting a list of posts by category
Query by custom post type
Query posts before or after a specific date
Complex queries on custom field values
Multiple queries and post lists on the same page
September 20, 2015 — This session teachs developers how to write custom WP_Query loops, the different functions available for interacting with WP_Query objects, and how to use each function appropriately. We discuss the cases where WP_Query doesn’t fit your needs, and how to deal with the global $wpdb object directly. And we look at the most useful methods available with the $wpdb object, and discuss responsible usage and implementation there of.
May 31, 2015 — Once upon a time we passed parameters to create web pages, now we use pretty URLs and (hopefully) think through our URLs carefully. URLs are one of the fundamental commands a user can give WordPress, and they can be poetic, powerful and precise all at once. This talk covers how URLs are turned into WP_Query parameters, what URL endpoints are and when to use them, how URLs can be attractive and amusing, and how to use URLs across different post type structures.
November 15, 2014 — In the recent past, the WordPress developer community has been enlightened as to the dangers of query_posts() and embraced new WP_Query(). Now, let’s take a deeper dive into WP_Query and its helpers, WP_Tax_Query, WP_Meta_Query, and WP_Date_Query. From arguments to SQL to hooks, we take a look at how to get just the posts you want.
August 24, 2014 — В этом докладе Сергей подробно расскажет о том, как работает один из важных API WordPress — WP_Query, об основных и вторичных запросах, решении возможных проблем и правильном применении различных способов получения записей в WordPress.