Home › Forums › Back End › php problem on WordPress ~ Please help! › Re: php problem on WordPress ~ Please help!
March 24, 2011 at 4:03 pm
#53974
TheLeggett
Member
I’m almost positive that you can’t use comparison operators in the query_posts function, such as “>=”.
If that’s so, this will require a custom query… maybe something like this?
wpdb->get_results(" SELECT * FROM $wpdb->posts WHERE post_date > '2011-03-24 00:00:00' ");
?>
Some useful info if you’re not familiar with querying the database this way: http://codex.wordpress.org/Function_Reference/wpdb_Class