简体   繁体   中英

WordPress/WooCommerce URL for catgories

We have always been able to determine two categories in the URL to filter the results to show items that meet both of the categories in the URL

For example: http://www.shoezies.co.nz/product-category/sale+shoes/

This would show only products that are in the 'sale' category and the 'shoes' category.

This is no longer working in the latest WordPress update. Does anyone have experince wiht this kind of thing.

I have contact WooCommerce support but they are extremely slow so hoping the community can help a brother out.

On new wordpress version, old php and wordpress/woocommerce functions doesn't work. So these problems often occurs after upgraded wordpress version. In my thought, some woocommerce functions related to product category will be changed.

If you let me know details info, I can fix them correctly Or you can search positive solutions yourself on google depends on this answer

You've got an issue with your custom.js file, change your code to this.

(function( $ ) {
    'use strict';

    $(function() {
        $('.home-box:empty').hide();
    });
});

Also for multiple categories you can pass this URL, separate categories with a comma.

http://www.shoezies.co.nz/?product_cat=sale,shoes

I can't check if it's working because your site is not rendering because of the jQuery error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM