How do I display the newest events first and the older later?

  1. Home
  2. Docs
  3. Januas
  4. Frequently Asked Question...
  5. How do I display the newest events first and the older later?

How do I display the newest events first and the older later?

Don’t forget to take a backup of the file prior to any change. We won’t be able to help in case of data loss.

Please do the following.

1) Open wp-content/themes/januas/search.php

2) Search for the following: (around line number 69)

$args = array(

‘s’ => $text_s,

‘post_type’ => ‘ja-event’,

‘paged’ => $paged_s,

‘orderby’ => ‘meta_value’,

‘order’ => ‘ASC’,

‘meta_key’ => ‘januas_eventdata_startdate’

);

3) Change the ‘order’ => ‘ASC’, in the above code to ‘order’ => ‘DESC’,

4) Save the file.

 

Was this article helpful to you? Yes 1 No