Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Previous / Next Post is DESC instead of ASC #1035949

    Hi Victoria

    I have tried both of your suggested threads but couldn’t make it work. What i have done so far:
    – Installed “Post Types Order” Plugin (They are now correctly sorted ASC in the category view https://www.fonduesaucen.ch/saucen/ )
    – Added the two following snippeds:

    add_filter( ‘avia_post_grid_query’, ‘custom_post_grid_query’, 10, 2);
    function custom_post_grid_query( $query, $params ) {
    $query[‘orderby’] = ‘title’;
    $query[‘order’] = ‘ASC’;
    return $query;
    }

    add_filter(‘avia_post_nav_entries’, ‘avia_apply_custom_sort_order_to_post_nav’, 10, 2);
    function avia_apply_custom_sort_order_to_post_nav($entries, $settings)
    {
    $temp_prev = $entries[‘next’];
    $temp_next = $entries[‘prev’];
    $entries[‘prev’] = $entries[‘next’] = “”;
    if(!empty($temp_prev)) $entries[‘next’] = $temp_prev;
    if(!empty($temp_next)) $entries[‘prev’] = $temp_next;
    return $entries;
    }
    – But the Side Navigation on the Product Detail Page is still in the wrong order (DESC), see https://www.fonduesaucen.ch/produkt/barbecuesauce/ it is the first product in the category but the side navigation only appears on the left side instead of the right side (it should be right since it is the first product).

    Do you see what I mean? :-) Thank you a lot!

    BRG

    Michael

    Thank you a lot Victoria! Worked like a charm!

    Hi Victoria

    Please find the credentials attached.

    Brg

    Michael

Viewing 3 posts - 1 through 3 (of 3 total)