Categories

Featured templates

CherryFramework 3. How to change custom post type slug

Phil Nowak July 13, 2012
Rating: 5.0/5. From 6 votes.
Please wait...

In this tutorial you will learn the way to change custom post type slug.

Most of templates have custom post types – like slider or portfolio menu buttons in admin panel

When you open such types of posts you have special slug in post URL, we will change it in the tutorial.

1) Open your FTP or Cpanel and locate folder wp-content. Open it, then open folder “themes” and your theme folder.

2) Now you can open folder “includes” and locate “theme-init.php” file in there. You need to edit this file in any editor.

3) You can locate all post types and slugs in file theme-init.php. All the file content is split into logical block and it will be easy to navigate it. You can also use search feature and just search for slug you need to update.

4) Locate and replace post type slug with any slug you need, try not to use spaces.

The script should look like:

'slug' => 'portfolio-view'

5) Save the file and test your website.

6) Sometimes you may get 404 error after changing custom post type slug, it is related to permalinks issue. You need to open admin panel, change permalings structure to default, save website and then revert it to previous state.

Feel free to check the detailed video tutorial below:

WordPress. How to change custom post type slug

Wordpress Premium Templates
This entry was posted in WordPress Tutorials and tagged custom, post, slug, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket