- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress Blogging themes. How to change custom post type slug
February 21, 2017
This tutorial is going to show you how to change custom post type slug in WordPress Blogging templates.
There are standard custom post type slugs in WordPress Blogging themes, e.g. “cherry-services” for Services posts etc.

Let’s say you want to change “cherry-services” to “our-services”. To do that, please, follow the steps listed below:
-
Log into your WordPress admin panel and navigate to the Appearance > Editor page.
-
Locate functions.php file on the right side. Click on it. Once you do that you will see file content in front of you.
Scroll down to the very end of the file and add the following code right before the closing PHP tag:
add_filter( 'cherry_services_post_type_args', '_my_rewrite_slug' ); function _my_rewrite_slug( $args ) { $args['rewrite']['slug'] = 'our-services'; return $args; }
-
Remember to replace our-services with your new slug.
Click Update File button to save the change.
Note! In order to have the actual slug changed on your frontend you need torefresh the permalinks:
Now you can check your site. Open services post to see successful slug change.
Feel free to check the detailed video tutorial below:
WordPress Blogging themes. How to change custom post type slug