Default Sort for Articles

Discussion in 'Article Script / Article Directory Script' started by CKENT, Sep 6, 2016.

  1. CKENT

    CKENT New Member

    Is there a way to change the default sort for articles from oldest>newest to newest>oldest?
  2. Andrew_G.

    Andrew_G. Staff Member

    Hi @CKENT ,

    In order to change the default sort for articles to newest>oldest you need to:
    1) connect to your FTP server (via any FTP client, for example, via FileZilla)
    2) open the ../packages/publishing/index.php file and replace the line of code below:
    PHP:
    $orders = array('date_added-asc', 'date_added-desc', 'title-asc', 'title-desc', 'views_num-asc', 'views_num-desc');
    with this line of code:
    PHP:
    $orders = array('date_added-desc', 'date_added-asc', 'title-asc', 'title-desc', 'views_num-asc', 'views_num-desc');
    That's it!

    Thanks for your interest in our software products!
    Dayir_A., olairmarcos and Greg like this.
  3. CKENT

    CKENT New Member

    Thank you, worked great.
  4. Andrew_G.

    Andrew_G. Staff Member

Share This Page