• Resolved hwamart

    (@hwamart)


    Does this work with sorting option such as Price low to high? Will they display in correct order?

Viewing 1 replies (of 1 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @hwamart
    Not out of the box, but you could do something like this in your template.

    $params = '';
    $order = $_GET('orderby');
    if($order === 'price'){
       $params = 'order="ASC" orderby="meta_value" meta_key="_price"';
    }
    echo do_shortcode('[ajax_load_more post_type="products" '.$params.']');

    I plan to create an FAQ on this soon.

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce Infinite Scroll + Sorting’ is closed to new replies.