WP_Query_Multisite
WP_Query_Multisite copied to clipboard
A subclass of WP_Query to allow for easy querying of multisite posts
After upgrading to WordPress 6.0.0 I get an empty response from query. with 6.0.0 request in wp_query looks like: ``` "\n\t\t\tSELECT SQL_CALC_FOUND_ROWS prx23_posts.*\n\t\t\tFROM prx23_posts \n\t\t\t \n\t\t\t\n\t\t\tORDER BY tables.post_date DESC\n\t\t\tLIMIT 0,...
How would one default all queries to use multisite?
If I try to add $args['meta_key'] = 'my_meta_key'; $args['orderby'] = 'meta_value'; $args['order'] = 'DESC'; the query results NULL, because postmeta table is not in the main fields of the query......
Hi, I get all the blogs i want from all my networks. But now I need to filter them by category? How do I approach this? is it just use...
Hi, I encounter a similar problem with other way like yours to query the network. Maybe you'll have an idea. I use your class in a shortcode built for Visual...
WP changed how they format and pass the $sql var to the posts_requests hook (and probably elsewhere too). Added a preg_replace line to remove multiple spaces/tabs and replace with single...