I am working with a heavily customized install of WP. I’ve set up a specific post type, taxonomy, and roles that gets to use just that post type. Ideally,...
I’m working on a custom template for a new theme that uses a WP_Query instance to select posts from 2 post types with 2 custom fields that are NOT...
When running the following code : $voucher="MK0186"; $is_in_database = $wpdb->get_results( "SELECT * FROM my_codes_table WHERE code =" . $voucher ); I get : WordPress database error: [Unknown column ‘MK0186’...
How can I do a query to return the post if the custom field array contains a date that is within the specified range? The query below is basically...
I am a bit stuck with setting up this date query. I am using a dropdown select box to allow the user to choose which date archive they want...
I need to find if a post with a custom field X equal to Y exists in a wordpress installation. Should I do it with a simple sql query...
I have been searching high and low for a way to count the amount of results from a get_users query. Most of what I found is to count the...
What I am trying to do is modification of this function on codex http://codex.wordpress.org/Function_Reference/count_user_posts Check the title adding post type support bottom of the page. The function is: function...
I want to run a SELECT query on the WordPress database and get the results on the screen. Any widget which does it? 1 Answer 1 Have a look...
I have a page where I show all the attachments of a page in a table which has id=10. I have hundreds of attachments and I would like to...