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!

#53906
4bco
Participant

$querystr = "
SELECT wposts.*
FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
WHERE wpostmeta.meta_key = 'date'
AND wpostmeta.meta_value <= time()
";
$pageposts = $wpdb->get_results($querystr, OBJECT);
?>