• Hello,

    I’ve a plug-in which returns posts based on a personalized WP_Query.

    I’d like to add a predicate about the field post_date_gmt, but it seems not to work.

    What I do is that I generate the value for the predicate as follows:

    $now_gmt = gmdate (“Y-m-d H:i:s”, time());

    $r=new WP_Query(“post_date_gmt>=’$now_gmt’&…”);

    Is this a supported parameter in the WP_Query?

    Thanks, Sergio

  • The topic ‘post_date_gmt in WP_Query’ is closed to new replies.