• Resolved Gulshan Kumar

    (@thegulshankumar)


    Hello,

    Wonderful plugin. I would be happy to rate it 5 stars.

    Can you please provide me a snippet that helps in achieving same?

    Thanks & Regards,
    Gulshan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    You can make this change by going into the plugin files. Before doing anything, make sure to back up your site. Also, be sure you have FTP access in case something goes wrong.

    Open includes -> functions.php
    On line 151 of this file you will see: $default_order_by = ‘title’; Change title to date
    2 lines down you will see $default_order = “asc”; Change asc to desc.

    Hope this helps you!

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    i did same meanwhile but a proper way would be better so changes remain after updating.

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @thegulshankumar ,

    I would prefer to buy the pro version. Pro version has all these features.

    Thanks,

    Trusty Plugins Team

    Add this on functions.php of your Child Theme or use the Code Snippets plugin:

    add_filter(‘tc_caf_filter_posts_order’, ‘tc_modify_ajax_search_query’, 10, 1);
    function tc_modify_ajax_search_query($search_parameters)
    {
    $default_order = “desc”;
    return $default_order;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter posts by Published Date in Descending order instead by Title in ascending’ is closed to new replies.