Support » Plugins and Hacks » WP Order Cart » Sorted article list?

Sorted article list?

Viewing 1 replies (of 1 total)
  • This solution worked for me for products displayed in the archive page…

    Under wp-order-cart/templates/products.php, go to ~line 33 where this code is:
    <?php if (have_posts()) : while (have_posts()) : the_post();?>

    Above that line, add this code:
    <?php query_posts($query_string . ‘&orderby=title&order=ASC’); ?>

    I have it sorted by title, but you should be able to change it to another field. Also, be aware that this will be overwritten if you update the plug-in.

Viewing 1 replies (of 1 total)
  • The topic ‘Sorted article list?’ is closed to new replies.
Skip to toolbar