- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
CherryFramework 4. How to change custom post type slug
June 14, 2016
Hello! This video tutorial shows how to change custom post type slug in CherryFramework 4 templates.
There are standard custom post type slugs in Monstroid templates, e.g. “services-view” for Services posts, “portfolio-view” for Portfolio posts, “team-view” for Team posts etc.
You may want to change the custom post slug to match your desire.
Let’s lean how to do this.
Let’s say you want to change the “team-view” slug for Team posts to “our-team”:

The tutorial assumes you are already logged in to your WordPress dashboard.
-
Navigate to the Appearance ->Editor tab:
-
Then click on the Theme Functions (functions.php) file title at the right hand side:
-
Scroll down to the very end of the file and add the following code right before the closing PHP tag:
add_filter( 'cherry_team_post_type_args', 'monstroid_filter_team_params' ); function monstroid_filter_team_params( $args ) { $args['rewrite']['slug'] = 'our-team'; return $args; }
-
Click on the “Update File” button to apply changes.

Note! In order to have the actual slug changed on your front-end you need to “refresh” the permalinks:
-
Navigate to the Settings ->Permalinks tab:
-
Simply click “Save Changes” button:
-
Navigate to your site frontend and check the Team post type page. You can see the slug has been successfully changed:
This is the end of the tutorial. Now you know how to change the custom post type slug in your CherryFramework 4 template.
Feel free to check the detailed video tutorial below:
CherryFramework 4. How to change custom post type slug