Januas

  1. Home
  2. Docs
  3. Januas
  4. Frequently Asked Questions
  5. How can I display the events on my home page from the most recent to the oldest instead of the oldest events first.

How can I display the events on my home page from the most recent to the oldest instead of the oldest events first.

You can display the latest event by following the instruction below:

1) Please don’t forget to take a backup of the file prior to any change.

2) Login to the admin dashboard. Navigate Appearance -> Editor menu.

3) Select Main Index Template (index.php) from the right side of the page listing.

4) Search for the following lines (apx line no 23 & 25)

‘orderby’ => ‘meta_value

and
‘order’ => ‘ASC’,

5) Please comment/remove these lines ( ie line no: 23 and 25)

6) Update the file

Was this article helpful to you? Yes No