Query pages created by deleted users

WordPress gives you a few options on the Dashboard when you delete a user. As far as I am aware the options are: Delete the user but keep their name / credit on created content Delete the user and attribute their content to another user Delete the user AND delete their content Unless there were … Read more

Why are my wp_query args being ignored if post_type = CPT

I found the problem, thanks to @vancoder for the tip! I have pre_get_posts attached to a function for alphabetizing product posts, which was causing everything else to be out of whack. It should have been targeting only products! /*************************************************************** * Change Archive sorting * https://codex.wordpress.org/Alphabetizing_Posts ***************************************************************/ function course_dir_sort_order( $query ) { if ( $query->is_archive(‘products’) ) … Read more

Using a new WP_Query inside the loop

It seems that the following code is at fault: $query_args[‘tax_query’] = array( array( ‘taxonomy’ => ‘edd_log_type’, ‘field’ => ‘slug’, ‘terms’ => ‘file_download’, ) ); It seems to be combining the tax_query args with those from the search query itself, by removing this I am getting a better result, although it is counting ALL logs, not … Read more