Sfoglia il codice sorgente

:recycle: trying exhibition sort by end date

tags/0.9.0
j 4 anni fa
parent
commit
f38b3a5407
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      plugins/cia-endpoints/includes/class.make-sortby.php

+ 2
- 2
plugins/cia-endpoints/includes/class.make-sortby.php Vedi File

108
             JOIN wp_postmeta AS ends
108
             JOIN wp_postmeta AS ends
109
             ON (ends.post_id = wp_posts.ID AND ends.meta_key = %s AND ends.meta_value >= %s)
109
             ON (ends.post_id = wp_posts.ID AND ends.meta_key = %s AND ends.meta_value >= %s)
110
             WHERE post_type = %s AND post_status = 'publish'
110
             WHERE post_type = %s AND post_status = 'publish'
111
-            ORDER BY starts.meta_value ASC",
111
+            ORDER BY ends.meta_value ASC",
112
             $start, $time, $time, $end, $time, $this->post_type
112
             $start, $time, $time, $end, $time, $this->post_type
113
         ));
113
         ));
114
         wp_reset_postdata();
114
         wp_reset_postdata();
127
             JOIN wp_postmeta AS starts
127
             JOIN wp_postmeta AS starts
128
             ON (starts.post_id = wp_posts.ID AND starts.meta_key = %s AND starts.meta_value >= %s)
128
             ON (starts.post_id = wp_posts.ID AND starts.meta_key = %s AND starts.meta_value >= %s)
129
             WHERE post_type = %s AND post_status = 'publish'
129
             WHERE post_type = %s AND post_status = 'publish'
130
-            ORDER BY starts.meta_value ASC",
130
+            ORDER BY ends.meta_value ASC",
131
             $start, $time, $this->post_type
131
             $start, $time, $this->post_type
132
         ));
132
         ));
133
         wp_reset_postdata();
133
         wp_reset_postdata();

Loading…
Annulla
Salva