Support

Account

Home Forums General Issues Query date repeater field Reply To: Query date repeater field

  • i tried like this, to try to display only if one post has the same date than today date but i ‘ve all the post instead of only one.

    $today = date(“d/m/Y”);
    $args = array (
    ‘post_type’ => ‘spectacle’,
    ‘meta_key’ =>’dates_0_date_spectacle’,
    ‘orderby’ => ‘meta_value_num’,
    ‘meta_value’ => $today,
    ‘meta_compare’ => ‘=’,
    );