Title: slug issues
Last modified: May 5, 2021

---

# slug issues

 *  Resolved [stevecox54](https://wordpress.org/support/users/stevecox54/)
 * (@stevecox54)
 * [5 years ago](https://wordpress.org/support/topic/slug-issues-3/)
 * Hi, I’ve read a few posts here about changing the slug/permalinks for the brand
   pages.
 * The outcome I’m looking for is to change the url from
 * [https://www.greenerlyfe.com/blog/brand/scence/](https://www.greenerlyfe.com/blog/brand/scence/)
 * to
 * [https://www.greenerlyfe.com/eco-brands/scence/](https://www.greenerlyfe.com/eco-brands/scence/)
 * I’ve changed the setting in Woocommerce->Settings->brands->general->slug to “
   eco-brands”.
 * I’ve then included the following in my functions.php
 *     ```
       function fix271218_pwb_taxonomy_args( $args, $taxonomy, $object_type ) {
   
           if ( 'pwb-brand' === $taxonomy && is_array( $args ) ) {
               /* alter the rewrite with front arg */
               $args[ 'rewrite' ][ 'with_front' ] = false;
           }
           return $args;
       }
       add_filter( 'register_taxonomy_args', 'fix271218_pwb_taxonomy_args', 10, 3 );
       ```
   
 * These settings seem to work however if I then go to Settings->Permalinks->Save
   to flush the links I get a 404 page against /eco-brands/scence/. The page /blog/
   eco-brands/scence/ returns correctly.
 * If I go back to Woocommerce->Settings->brands->general->slug and simply save 
   the settings the /eco-brands/scence/
 * The 404 error returns ramdonly but is probably linked to when I update plugins
   which refresh permalinks.
 * Please help,
    Cheers, Steve
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fslug-issues-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [sebastopolys](https://wordpress.org/support/users/sebastopolys/)
 * (@sebastopolys)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/slug-issues-3/#post-14664501)
 * Hello [@stevecox54](https://wordpress.org/support/users/stevecox54/)
 * I know this is a very late reply. But maybe I can still help
 * ¿Are you still experiencing this issue?
 *  Thread Starter [stevecox54](https://wordpress.org/support/users/stevecox54/)
 * (@stevecox54)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/slug-issues-3/#post-14665679)
 * Hi [@sebastopolys](https://wordpress.org/support/users/sebastopolys/)
 * Many thanks for coming back to me. Yes this happened the other day.
 * I updated the PWB plugin this time and then went to one of the brand pages ([https://www.greenerlyfe.com/eco-brands/scence/](https://www.greenerlyfe.com/eco-brands/scence/))
   and received the 404 error.
 * I then simply went to Woocommerce->Settings->Brands and saved the settings – 
   404 error gone !
 * Cheers, Steve

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘slug issues’ is closed to new replies.

 * ![](https://ps.w.org/perfect-woocommerce-brands/assets/icon-256x256.jpg?rev=2912506)
 * [Perfect Brands for WooCommerce](https://wordpress.org/plugins/perfect-woocommerce-brands/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/perfect-woocommerce-brands/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/perfect-woocommerce-brands/)
 * [Active Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/perfect-woocommerce-brands/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/perfect-woocommerce-brands/reviews/)

## Tags

 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [slug](https://wordpress.org/support/topic-tag/slug/)

 * 2 replies
 * 2 participants
 * Last reply from: [stevecox54](https://wordpress.org/support/users/stevecox54/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/slug-issues-3/#post-14665679)
 * Status: resolved