Sorteerfunctie FacetWP gebruiken

Voeg deze code toe aan functions.php van je thema of in Code Snippets.

// replace default woocommerce sort by 
if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) {
    /**     * Output facet sort box instead of woocommerce's     */    function woocommerce_catalog_ordering() {        echo facetwp_display( 'sort' );    }}