Convert WordPress url with querystring to slash-delimited "friendly" url
Convert WordPress url with querystring to slash-delimited "friendly" url
I want this link: site.com/c/web/theme/?filter_cms=wp
Convert to: site.com/c/web/theme/wp/
I found this code and edited it a bit:
add_action('init', function () {
add_rewrite_rule('^c/web/theme/([a-z]+)/?$', 'index.php?product_cat=theme&filter_cms=$matches[1]', 'top');
});
it displays the desired category(theme) perfectly, but it does not display our filter query: ?filter_cms=wp! What is the problem?
c = WooCommerce category prefix
web = WC category
theme = WC sub-category
cms=wp = WooCommerce attribute
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand