Title: Registered post type?
Last modified: September 1, 2016

---

# Registered post type?

 *  [juanpeirotti](https://wordpress.org/support/users/juanpeirotti/)
 * (@juanpeirotti)
 * [10 years ago](https://wordpress.org/support/topic/registered-post-type/)
 * Hi!
 * Your plugin is wonderful! I’m just having this problem: added the custom post
   type next to post, like this “post, knowledge_base” which is a post type created
   by the Helper theme. When saved it shows the following error: “Error: The post
   type ” knowledge_base” couldn’t be saved, because it isn’t registered.”. Shouldn’t
   it be registered already as it is created and shoing in its custom menu in the
   admin. If not, what should I do? It’s the last step fo making the plugin work
   with this theme.
 * Thanks!
 * [https://wordpress.org/plugins/automatic-post-tagger/](https://wordpress.org/plugins/automatic-post-tagger/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Devtard](https://wordpress.org/support/users/devtard/)
 * (@devtard)
 * [10 years ago](https://wordpress.org/support/topic/registered-post-type/#post-7458598)
 * Hello. Hmm, that’s interesting, since APT uses the WP function post_type_exists()
   to check whether a post type is registered. This probably isn’t the best solution,
   but you can always remove the check from the code like this (main .php file, 
   line 3731):
 *     ```
       foreach($apt_submitted_post_types_array as $apt_single_post_type_index => $apt_single_post_type){
       	if(!in_array($apt_single_post_type, $apt_new_post_types_array)){
       		array_push($apt_new_post_types_array, $apt_single_post_type); //add the post type to the array if it isn't there already
       	} //-if post type isn't in the settings array
       } //-foreach
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Registered post type?’ is closed to new replies.

 * ![](https://ps.w.org/automatic-post-tagger/assets/icon-256x256.png?rev=1049934)
 * [Automatic Post Tagger](https://wordpress.org/plugins/automatic-post-tagger/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-post-tagger/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-post-tagger/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-post-tagger/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-post-tagger/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-post-tagger/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Devtard](https://wordpress.org/support/users/devtard/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/registered-post-type/#post-7458598)
 * Status: not resolved