WordPress.org

Ready to get started?Download WordPress

Forums

Organize Series
order doesn't work on my site (2 posts)

  1. tiline1
    Member
    Posted 6 months ago #

    Hi,

    I use this great plugin which works pretty well. But I have one issue. In the option page, I change the orger (by date, or by date /ascending/descending) but nothing change.
    Do you know how to resolve this issue ?

    Thanks a lot for your help.

    https://wordpress.org/plugins/organize-series/

  2. timhookoo
    Member
    Posted 4 months ago #

    I added this line of code, which fixed my site (made the archive page list in ascending order, which is what I wanted):

    function change_order($orderby, $query) {
    global $wpdb;
    if(is_archive())
    $orderby = "{$wpdb->prefix}posts.post_date ASC";
    return $orderby;
    }
    add_filter('posts_orderby','change_order');

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.