Giving custom name to Custom post types

Giving custom name to Custom post types

Note: Below is applicable since v1.3 of Logiscargo theme.

There are several custom post types in this theme, Filters were added in recent version so that you can easily customize the name of the Custom post types (CPTs) to match your business.

Let's do it for Service CPT first.

To change Service to your custom name. Please follow the instructions below.

1) Make sure you are using a child theme, a blank child theme is supplied with your main ThemeForest download.

2) In functions.php file of a child theme, please add the below code.

add_filter('tt_service_cpt_args','my_custom_ser_slug', 100) ;
function my_custom_ser_slug($ser_args) {

	$ser_args['rewrite']['slug'] = 'custom-service-name' ; // Change custom-project-name to your desired name

	return $ser_args;
}

3) After you are done, please go to Settings -> Permalinks and save changes. Otherwise, you might get a 404-Not found error on single pages.

Here is the list of total filters available. Which you can use in place of tt_service_cpt_args in above code.

tt_service_cpt_args

tt_project_cpt_args

tt_gallery_cpt_args

tt_type_tax_args

tt_team_cpt_args

tt_position_tax_args

tt_client_cpt_args

tt_testimonial_cpt_args

    • Related Articles

    • Renaming Service custom post type.

      There are several custom post types in this theme, Filters were added in recent version so that you can easily customize the name of the Custom post types (CPTs) to match your business. Let's do it for Service CPT first. To change Service to your ...
    • Recommended WordPress plugins for additional functionality

      -------------------------- Please note below plugins are not coded or endorsed by Templatation.com, we are not responsible for their effect on your website. Please make sure that you understand that you are using these on your own risk. ...
    • Shortcode templatation_posts details

      At Templatation.com, in few of our themes we use [templatation_posts] Shortcode. In this article, I will list parameters and other info for this shortcode. Available parameters for this Shortcode are below (with their default values): 'template' => ...
    • How to change base color in Fitzeous theme

      You might want to change the base green color of Fitzeous theme to match your brand.  You can go to wp-admin/themeoptions/styling to change the base colors of theme. On service block overlays, there is green color, you can change it by adding some ...
    • Loco translate trouble shooting

      If you did everything correct and detailed in documentation of theme but still translations are not working, please try below. Go to wp-admin/Loco Translate/Themes/<theme-name>/edit/Relocate and then try relocating translation files to System