• Hello everyone,
    I can not find the solution to my problem …

    I need to compare the value in meta_key ‘ mese_di_uscita ‘ with the value of the current month .

    This is my code :

    $query = new WP_Query( array (
    ‘category_name’ => ‘videogames’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => ‘ASC’,
    ‘meta_key’ => ‘data_di_uscita’, ‘mese_di_uscita’ )
    );

Viewing 1 replies (of 1 total)
  • How is the value in mese_di_uscita formatted? Is is a two digit month number, a one or two digit month number, a month name, a month abbreviation? Please give some examples.

Viewing 1 replies (of 1 total)
  • The topic ‘comparing the current date with meta_key value…’ is closed to new replies.