Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End php problem on WordPress ~ Please help! Re: php problem on WordPress ~ Please help!

#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