wp args order by multiple columns

Solutions on MaxInterview for wp args order by multiple columns by the best coders in the world

showing results for - "wp args order by multiple columns"
Hortense
14 Oct 2020
1"post_type" => "event",
2"post_status" => "publish",
3"posts_per_page" => 25,
4"ignore_sticky_posts" => 0,
5"show_sticky" => true,
6"meta_query" => array(
7    "event_start_date" => array(
8        "key" => "_meta_event_start_date",
9        "compare" => ">=",
10        "value" => 0
11    ),
12    "event_start_time" => array(
13        "key" => "_meta_event_start_time",
14        "compare" => ">=",
15        "value" => 0
16    )
17),
18"orderby" => array(
19    "event_start_date" => "ASC",
20    "event_start_time" => "ASC"
21)