Skip to content

Instantly share code, notes, and snippets.

@pablo-sg-pacheco pablo-sg-pacheco/index.php
Last active Jun 20, 2018

Embed
What would you like to do?
Add compatibility with WOOF plugin and More Sorting Options for WooCommerce regarding title sorting option
<?php
// Add these cases on get_catalog_orderby() function on index.php
case 'title-desc':
$orderby = "title";
$order = 'DESC';
break;
case 'title-asc':
$orderby = "title";
$order = 'ASC';
break;
@pablo-sg-pacheco

This comment has been minimized.

Copy link
Owner Author

pablo-sg-pacheco commented Jun 20, 2018

More Sorting Options for WooCommerce


WOOF - Woocommerce Products Filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.