Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Woocommerce Infinite Scroll + Sorting

  • 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 dcooney

    (@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)
  • You must be logged in to reply to this topic.