Categories

Featured templates

CherryFramework 4. How to change custom post type labels in the admin panel

Amina Freinger July 5, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

In this tutorial you will learn the way to change custom post type labels in the CherryFramework 4 based templates admin panel.

In CherryFramework 4 templates there are various custom post types added via different Cherry Plugins. Below you can see a list of most used custom post types in such templates and plugins that control these post types:

  • Portfolio – Cherry Portfolio plugin;

  • Testimonials – Cherry Testimonials plugin;

  • Team – Cherry Team plugin;

  • Services – Cherry Services plugin;

  • Charts – Cherry Charts plugin.

cherry4_how_to_change_custom_post_type_labels_in_the_admin_panel1

To change a custom post type label in the admin panel, you should perform the following steps:

  1. Using FTP manager or File Manager in the Hosting Control Panel, navigate to wp-content/themes/themeXXXXX directory (where XXXXX is the number of your theme).

  2. In this directory find and open functions.php file with any code editor and add the following code to the very bottom of this file:

    add_filter( 'cherry_services_post_type_args', 'themeXXXX_services_params', 11 );
    function themeXXXX_services_params( $args ) {
        $args['labels']['name'] = 'Custom Post Type';
    
    return $args;
    }

    This code will help you changing the Services custom post type label in the admin panel. In the code you should replace the "Custom Post Type" title with your required label.

    cherry4_how_to_change_custom_post_type_labels_in_the_admin_panel2

    NOTE: To apply the same changes to other custom post types, replace 3 "services" words in the code with the post type you needs to change it to (f.e., "team", "portfolio", etc.) and change the "Custom Post Type" to your required label.

    cherry4_how_to_change_custom_post_type_labels_in_the_admin_panel3
  3. Save the changes in the file and refresh your admin panel to check them. You will see your custom post type label is changed.

This is the end of the tutorial. Now you know how to change custom post type labels in the CherryFramework 4 based templates admin panel.

Feel free to check the detailed video tutorial below:

CherryFramework 4. How to change custom post type labels in the admin panel
Easy to Customize Wordpress Themes
This entry was posted in Monstroid Tutorials, WordPress Tutorials and tagged CherryFramework4, dashboard, label, post type. 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