Yup, I was really happy that such a plugin existed but after activating it, I found out it just does nothing for WooCommerce categories.
Developpers, are you planning on making this work soon?
EDIT: I found the solution for the multiple WooCommerce categories permalink problem. What you want to use is 2 plugins in conjunction:
+ WooCommerce Permalink Manager
+ Yoast SEO
With both activated, I can now define a WooCommerce product’s category as “primary category” and the permalink now reflects that one. It works exactly as if the primary defined category was the only one checked! It’s PERFECT ??
EDIT 2: Oh, and if you care about breadcrumbs on your site, then you also need to activate Yoast SEO breadcrumbs (it’s under ADVANCED page settings) and tweak your functions.php by copy/pasting this code block at the end of it:
/* ---------- CUSTOM ---------- */
// Remove WooCommerce Breadcrumbs
remove_action( 'init', 'woocommerce_breadcrumb', 20, 0);
remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0);
//Add Yoast Breadcrumbs
add_action( 'woocommerce_before_main_content','my_yoast_breadcrumb', 20, 0);
if (!function_exists('my_yoast_breadcrumb') ) {
function my_yoast_breadcrumb() {
yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}
}
Hope people coming here over the next year or two will pull their hair out a little less than I did to come up with this custom solution! Enjoy ??
-
This reply was modified 7 years, 3 months ago by
ben2358723823567. Reason: FOUND THE SOLUTION!
-
This reply was modified 7 years, 3 months ago by
ben2358723823567.