Add this code to your functions.php–
add_action( 'init', 'the_drmatist_category_base' );
function the_drmatist_category_base() {
// Remember to flush the rules once manually after you added this code!
add_rewrite_rule(
// The regex to match the incoming URL
'news/([^/]+)/([^/]+)/([^/][^f][^e][^e][^d]+)(/[0-9]+)?/?$', //here my changes to exclude 'feed'
// The resulting internal URL
'index.php?product_cat=$matches[1]/$matches[2]&name=$matches[3]&paged=$matches[4]',
// Add the rule to the top of the rewrite list
'top' );
}
Then Save Changes on you Permalinks settings page and then try again please. And let me know what happens.
Related Posts:
- How to remove the sub-category from Woocommerce product URL
- How to remove product base from WooCommerce product permalinks
- Permalinks contain unwanted space resulting in broken links
- Subcategories not working when using shared base with custom taxonomy
- WooCommerce product category permalinks
- Add Custom Slug Tags Per Page
- How to rewrite product permalinks in Woocommerce to use category slugs
- Add only sku to product url woocoomerce
- Woocommerce Product permalinks “product” word is not working
- Custom WooCommerce rewrite rules with comma delimiter
- How to change product category permalinks programmatically?
- One Time Access URL after purchasing subscription
- WooCommerce return 404 in the product page
- How to update permalink programmatically?
- How to remove the Sub category product URL Woocommerce
- Woocommerce posts and products links works only once and then get 404 error
- Custom pagination permalink structure Product page
- Adding country subdomain to an existing website like www.example.com/uk
- WooCommerce product id as permalink
- Woocommerce product and category in url [closed]
- WooCommerce product permalink based on product’s current category
- Woocommerce products permalink based on SKU
- woocommerce permalinks like “?p=%post_id%”
- Cannot use dynamic prefix for WooCommerce permalink
- What’s the difference between WC() and $woocommerce
- How to get values from woocommerce admin input fields?
- Permalinks for WooCommerce Categories and Subcategories
- How to show “Previous Category” and “Next Category” in categories archieve template [closed]
- How to update variable product stock status with code
- Woocommerce Product Image and Thumbnails custom function
- Create WooCommerce new order with specific ID
- woocommerce change order statuses count for specific role
- is_user_logged_in() always returns false for woocommerce_login_redirect
- WordPress ‘on behalf of’ email
- Display description on cart page
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- wp_customize – detect post type to show/hide customizer options
- WooCommerce – Display nested list of all subcategories on archive-product.php
- Set woocommerce product price based on dealer location [closed]
- How can I custom order the product display?
- WordPress plugin cloak link [closed]
- Woocommerce REST API – updating an order changes custom tax calculations
- How to list all WC products by their attributes values?
- Showing the WordPress standard text area on a Woocommerce Single Product Page?
- WordPress WooCommerce: How to allow only specified customers to pay by check? [closed]
- Make a Read More toggle in the_content on single-product in Woocoomerce
- WooCommerce Base Page Featured Image Custom Theme
- How to override the title tag for woocommerce endpoints?
- WooCommerce – Global $product is returning value null
- How to re-arrange this hooked content?
- Pre filter woocommerce products to remove a certain category of products
- WooCommerce Stripe Plugin not showing up in settings [closed]
- Woocommerce – Change the template?
- Wooocommerce disable check_cart_item_stock if cart item has specific meta
- Force meta data on specific product type
- WooCommerce plaintext mail doesn’t display currency symbol
- Woocommerce, finding the ordinal number of a purchase for a certain product
- WooCommerce order refund get qty refunded
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- WP/WooCommerce multisite with polylang, product duplication between websites [closed]
- WooCommerce add_to_cart
- WooCommerce Simple Product Options List
- Add custom body tag if product is out of stock
- Functions.php change for Woocommerce not working
- Woocommerce replace product page image with product tabs [closed]
- How to get all customers cart from woocommerce API?
- WooCommerce login redirect based on cart
- send order detail to swiftpos
- WordPress Woocommerce REST API JSON Error
- data-value for custom woocommerce field showing in code but not visable on page load
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘WC_Rapyd’ does not have a method ‘install’
- How can we find a WooCommerce shop bottleneck? (only when cart is full)
- Conditional for product attribute page
- Setting Page Visibility for WooCommerce Default Page Doesn’t Work
- Deleted products from woocommerce are still in the database
- Remove cart functionality from WooCommerce so it doesn’t remember the products [closed]
- Apply CSS to certain product thumbnails only
- Files names changed (with strange characters) after being uploaded to cpanel
- woocommerce_add_to_cart custom function called several times
- Order Woocommerce Products by On Sale and Alphabetically
- Customer Email Address
- Adding time of order to Admin email for new order
- Uninitialised Parameters using woocommerce_checkout_update_order_meta hook
- Woocommerce customer role doesn’t change if user is already a subscriber [closed]
- Hide add to cart when product variation has no price or is unavailable
- How to get the WooCommercer product variation image
- how add css class to product boxes li, for img, add cart button, decs, price… [closed]
- How can I hide the entire “Shipping Details” block on the admin side of Woocommerce? [closed]
- Decrease stock quantity when a variation is sold using Woocommerce
- WooCommerce show decimals in totals [closed]
- Woocommerce – display all sold out products
- Woocommerce how to show most selling products by category
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- Modify existing code to show user nickname in woocoomerce order email instead of user_login
- How to prevent woocommerce product tag field from update?
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?
- WooCommerce custom SVG coloring tool [closed]
- Woocomerce erro shipping [closed]
- How do I prevent double the amount of stock being reduced with this Split Order Woocommerce Code? [closed]