From 5b26e3982846b637993622d9ad6de26ab9d352e6 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Fri, 11 Feb 2022 09:54:30 +0100 Subject: more pagination details fixes --- includes/concert.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/concert.php') diff --git a/includes/concert.php b/includes/concert.php index a67364f..11949f7 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -201,6 +201,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { 'id' => $wpdb->prefix . 'giglogadmin_concerts.id', 'name' => 'wpgconcert_name', 'date' => 'wpgconcert_date', + 'month'=> 'MONTH(wpgconcert_date)', 'venue_id' => $wpdb->prefix . 'giglogadmin_venues.id', 'venue' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_name', 'city' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_city', @@ -213,6 +214,9 @@ if ( !class_exists('GiglogAdmin_Concert') ) { switch ($key) { case 'name': case 'date': + case 'month': + array_push($where, $wpdb->prepare($keymap[$key] . '=%s', $value)); + break; case 'venue': case 'city': array_push($where, $wpdb->prepare($keymap[$key] . '=%s', $value)); -- cgit v1.2.3