Title: Remove certain custom post types?
Last modified: September 1, 2016

---

# Remove certain custom post types?

 *  Resolved [opus13i](https://wordpress.org/support/users/opus13i/)
 * (@opus13i)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/)
 * I don’t need certain custom post types like ‘Employees’ and ‘Testimonials’.
 * I have tried to disable them via the standard methods, but none of them is having
   an effect.
 * like so: [http://wordpress.stackexchange.com/questions/3820/deregister-custom-post-types](http://wordpress.stackexchange.com/questions/3820/deregister-custom-post-types)
 * How can I clean up the dashboard?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * (@kharisblank)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/#post-7654601)
 * Hello there,
 * Try to add this function into the child theme’s functions.php file or you can
   use the [Functionality](https://wordpress.org/plugins/functionality/) plugin:
 *     ```
       function sydney_child_unregister_theme_post_types() {
           global $wp_post_types;
           foreach( array( 'employees', 'testimonials' ) as $post_type ) {
               if ( isset( $wp_post_types[ $post_type ] ) ) {
                   unset( $wp_post_types[ $post_type ] );
               }
           }
       }
       add_action( 'init', 'sydney_child_unregister_theme_post_types', 20 );
       ```
   
 * Ref:
 * * [https://themify.me/docs/deregistering-custom-post-types](https://themify.me/docs/deregistering-custom-post-types)
 * Regards,
    Kharis
 *  Thread Starter [opus13i](https://wordpress.org/support/users/opus13i/)
 * (@opus13i)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/#post-7654616)
 * That was the trick.
 * Thank you!
 *  Thread Starter [opus13i](https://wordpress.org/support/users/opus13i/)
 * (@opus13i)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/#post-7654617)
 * (marking as resolved)
 *  [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * (@kharisblank)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/#post-7654620)
 * No problem.
 * Please let us know in a new topic if you have any further questions, or if we
   can provide you with any other assistance.
 * Have a good day!
 * Regards,
    Kharis

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove certain custom post types?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sydney/2.68/screenshot.png)
 * Sydney
 * [Support Threads](https://wordpress.org/support/theme/sydney/)
 * [Active Topics](https://wordpress.org/support/theme/sydney/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sydney/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sydney/reviews/)

## Tags

 * [post-type](https://wordpress.org/support/topic-tag/post-type/)
 * [unregister](https://wordpress.org/support/topic-tag/unregister/)

 * 4 replies
 * 2 participants
 * Last reply from: [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/remove-certain-custom-post-types/#post-7654620)
 * Status: resolved