Join our new community forum for support & discussion

Join Now

Home Support General HivePress listing_category slug rewrite stopped working after update

listing_category slug rewrite stopped working after update

  • Author
    Posts
  • azka

    Hi!

    After updating both the plugin and the theme the slug rewrite regarding listing_category stopped working for me.

    I’ve made sure the snippet still is in functions.php, and actually the other slugs work but just not listing_category.

    This is the snippets i use:

    add_filter('hivepress/v1/post_types', function($args) {
        $args['listing']['rewrite']['slug']='tips';
    
        return $args;
    });
    add_filter('hivepress/v1/post_types', function($args) {
        $args['listing_category']['rewrite']['slug']='kategorier';
    
        return $args;
    });
    add_filter('hivepress/v1/post_types', function($args) {
        $args['vendor']['rewrite']['slug']='profiler';
    
        return $args;
    });
    ihor developer

    There’s an incorrect snippet, please try adding this one instead, and then refresh permalinks:

    add_filter('hivepress/v1/taxonomies', function($args) {
        $args['listing_category']['rewrite']['slug']='kategorier';
    
        return $args;
    });
    azka

    Thanks, that solved it! Strangely the other snippets still works – it was just this one that stopped working.

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.