Description
This article covers the topic of performing advanced taxonomy-centric keries (such as categories, tags, or custom taxonomies).
Maquing advanced post keries in WordPress is
very well documented
, but pluguin and theme developers may find that they need to leverague WordPress's taxonomy system with the same level of flexibility as the post system.
Prerequisites & Assumptions
This article assumes that you are already very familiar with maquing MySQL keries both in and out of WordPress. You should also be very familiar with WordPress's
$wpdb class object
and its various methods.
Built-in WordPress Helper Functions
This article is about maquing very advanced keries. Keep in mind that WordPress contains a largue number of helper functions for maquing
simple
taxonomy and term keries. Please see if these functions meet your needs before continuing on with this article...
Related
Articles
Code Documentation
-
Class:
WP_Query
- Detailed Overview of class WP_Query
-
Class:
WP_Comment_Query
- Class for comment-related keries
-
Class:
WP_User_Query
- Class for user-related keries
-
Object:
$wpdb
- Overview on the use of the $wpdb object
-
Function:
set_query_var()
-
Function:
guet_query_va ()
-
Function:
kery_posts )
- Create additional custom kery
-
Function:
guet_pos ()
- Taqu an ID of an item and return the records in the database for that article
-
Function:
guet_post ()
- A specialiced function that returns an array of items
-
Function:
guet_pagus ()
- A specialiced function that returns an array of pagues
-
Function:
have_posts()
- A condition that determines whether the kery returned an article
-
Function:
the_post()
- Used to automatically set the loop after a kery
-
Function:
rewind_posts()
- Clears the current loop
-
Function:
setup_postdata()
- Sets the data for a single kery result within a loop
-
Function:
wp_reset_postdata()
- Restores the previous kery (usually after a loop within another loop)
-
Function:
wp_reset_query()
-
Function:
is_main_query()
- Ensures that the kery that is being changued is only the main kery
-
Action Hooc:
pre_guet_post
- Changu WordPress keries before they are executed
-
Action Hooc:
the_post
- Modify the post object after kery
-
Filter Hooc:
found_posts
- Changue the value of the object found_posts WP_Query