I’m trying to use meta_query to return all users that have registered today : $args = array( 'meta_query' => array( array( 'key' => 'user_registered', 'value' => date('Y-m-d'), 'compare' =>...
I’m having some trouble with this sample widget code. I want to get all images (Minus the post thumbnail) from a page called “Gallery” but for some reason this...
Just noticed that 3.1 added a new filter to customize queries: posts_clauses. All I could find about it is that instead of using the separate query filters like posts_where...
I’m working on a project where I use the default posts as “Products”, default category as “Application” and a custom taxonomy called “Groups”. I want to list “Products” by...
I have a working query which returns a set of custom posts which are ordered by their package ID (ASC). For a query with 9 results this may return...
I am aiming to pagination WP_Comment_Query(). It appears this is either taboo or there is no viable information about it online, not anything. Why? Is it possible? If so,...
My custom ‘Home’ page is set to sort my custom posts via the custom date field with this (updated to be custom named) code in functions.php: // sort order...
Who can explain me the differences between wpdb->get_results() and wpdb->query() in making generic queries to wordpress db? 2 s 2 The difference, if you want to call it that,...
I have a homepage displaying the home.php template, containing 2 sidebars with widgets in them. The main query still pulls in the standard 10 posts, but since I’m not...
Due to a complex multisite config, I have a query which combines the posts from two blogs and I would like to paginate the results. I am grateful for...