How does WordPress redirect to WooCommerce shop page? [closed]
You could add a rewrite rule to improve the appearance of the URL while maintaining the same functionality: As an example: add_action(‘init’, ‘custom_shop_param’); function custom_shop_param() { add_rewrite_tag(‘%param%’,'([^&]+)’); add_rewrite_rule(‘^shop/([^/]+)/?$’,’index.php?page=shop¶m=$matches[1]’,’top’); } When you visit http://site/wp/shop/{somevalue} the value that proceeds the /shop/ portion of the URL will be matched and stored in the query var param which is … Read more