Order of listings
-
Hi Deepen,
first of all congrats to the amazing plugin. You did an excellent job creating this.
I custumized it a bit for my purposes. One thing I found odd is that the listing is generated by date descending. This way the latest entered zoom-meeting is displayed first.
As I create my zoom-meetings chronologically, this was not useful for me. I wanted to have the next upcoming meeting first in the list.
I found a quick solution by patching your WP_Query in class-zvc-shortcodes.php :
$query_args = array(
‘post_type’ => $this->post_type,
‘posts_per_page’ => $args[‘per_page’],
‘post_status’ => ‘publish’,
‘paged’ => $paged,
‘orderby’ => ‘ID’,
‘order’ => ASC,
);This way I sort by post-ID ascending.
As described it’s good enough for me as I create the meetings chronologically. For a final solution it would be great to sort them ASC by meeting date and time.
Cheers,
Peter
- The topic ‘Order of listings’ is closed to new replies.