Title: permalink not working correctly
Last modified: July 7, 2025

---

# permalink not working correctly

 *  [adrien44](https://wordpress.org/support/users/adrien44/)
 * (@adrien44)
 * [11 months ago](https://wordpress.org/support/topic/permalink-not-working-correctly/)
 * Hello,
 * Just a quick note — I’m using the latest version of the plugin, and permalinks
   are no longer working correctly.
 * URLs no longer take the hierarchy into account (parent / child).
   For example:`
   domain.com/parent_cat/child_cat` returns a 404 error. You need to remove `parent_cat`
   from the URL for it to work.
 * I had to add the following code to my `functions.php` file to get it working 
   properly:
 *     ```wp-block-code
       add_filter('wpsl_store_category_args', function($args) // Assure que le slug reste identique$slug = isset($args['rewrite']['slug']) ? $args['rewrite']['slug'] : 'store-category';$args['rewrite'] = array('slug' => $slug,'with_front' => false,'hierarchical' => true);return $args;});
       ```
   

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

 *  [farroyo](https://wordpress.org/support/users/farroyob/)
 * (@farroyob)
 * [11 months ago](https://wordpress.org/support/topic/permalink-not-working-correctly/#post-18544186)
 * Hi there, thanks for writing.
 * Thanks for letting us know, I’ll forward this to the dev team so they are aware
   of it.
    Best regards,
 *  Thread Starter [adrien44](https://wordpress.org/support/users/adrien44/)
 * (@adrien44)
 * [11 months ago](https://wordpress.org/support/topic/permalink-not-working-correctly/#post-18544204)
 * I’d like to point out that the canonical URLs are broken (incorrect) as a result.
   I haven’t worked on a solution yet.
 *  Thread Starter [adrien44](https://wordpress.org/support/users/adrien44/)
 * (@adrien44)
 * [11 months ago](https://wordpress.org/support/topic/permalink-not-working-correctly/#post-18544258)
 *     ```wp-block-code
       if (is_tax('wpsl_store_category')) {        $term = get_queried_object();        if ($term instanceof WP_Term) {            $correct_url = get_term_link($term);            if (!is_wp_error($correct_url)) {                return $correct_url;            }        }    }
       ```
   

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

The topic ‘permalink not working correctly’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [adrien44](https://wordpress.org/support/users/adrien44/)
 * Last activity: [11 months ago](https://wordpress.org/support/topic/permalink-not-working-correctly/#post-18544258)
 * Status: not resolved