> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chipmunktheme.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change collection slug

> A guide on how to change the `/collection/` slug prefix in Chipmunk.

Paste this code into the Child Theme’s functions.php file (you can find the base for it [here](https://chipmunktheme.com/child-theme)). Make sure you activate the child theme instead of the main Chipmunk package.

```php functions.php theme={null}
function chipmunk_register_taxonomy_args($args, $taxonomy)
{
  if ("resource-collection" === $taxonomy) {
    $args["rewrite"]["slug"] = "podcast-category"; // Set your new slug here
  }

  return $args;
}
add_filter("register_taxonomy_args", "chipmunk_register_taxonomy_args", 10, 2);
```

<Warning>
  Please remember to refresh the WordPress permalinks after that! Go to **Settings > Permalinks** and click `Save Changes`.
</Warning>
