Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1035143

    Dear Kriesi Team

    On the Page https://fonduesaucen.ch/saucen/ you can find Products sort by ASC. However when you open one of the products the next / previous links on the side of the window are in the opposite order (DESC). How can i change it so it takes the same order as products (posts) are?

    You can find an admin login attached.

    Brg

    Michael

    #1035727

    Hey Michael,

    Here are some threads to consider:
    https://kriesi.at/support/topic/how-to-customize-previous-and-next-button-in-post/
    https://kriesi.at/support/topic/portfolio-order-reversed/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #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

    #1037439

    Hi,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.