Title: Problem with Custom Type Post
Last modified: November 10, 2022

---

# Problem with Custom Type Post

 *  Resolved [akide](https://wordpress.org/support/users/akide/)
 * (@akide)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/)
 * I have been using joinchat for a long time with great satisfaction and I congratulate
   with you for your excellent work.
    I recently encountered a problem with the 
   Events Manager plugin and its custom type posts.This Plugin in fact creates two
   types of posts: one type for places and the other for events. I would need to
   customize the phone number for some events but it seems that this is not possible
   for what concerns the events while to customize the phone number of location 
   I have no problems. In fact, it happens that when I go to the joinchat settings,
   I can only select the location while no item appears for the events. Would it
   be possible to solve this problem? Thank you.

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

 *  Plugin Author [Creame](https://wordpress.org/support/users/creapuntome/)
 * (@creapuntome)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/#post-16187013)
 * By default, Joinchat only recognizes public post types (with `has_archive = true`).
 * You can enable events archive in Events Manager settings (“Allow WordPress post-
   style archives”).
 * So, if you don’t want events archive you can add event post type in Joinchat 
   with this code in your theme functions.php.
 *     ```
       function joinchat_add_event_post_type( $post_types ) {
         return array_merge( $post_types, array( 'event' ) );
       }
       add_filter( 'joinchat_custom_post_types', 'joinchat_add_event_post_type' );
       add_filter( 'joinchat_post_types_meta_box', 'joinchat_add_event_post_type' );
       ```
   
    -  This reply was modified 3 years, 6 months ago by [Creame](https://wordpress.org/support/users/creapuntome/).
 *  Thread Starter [akide](https://wordpress.org/support/users/akide/)
 * (@akide)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/#post-16187599)
 * Thank you very much, this piece of code was really helpful for me.
    Thank you
   so much.
 *  Plugin Contributor [davidlillo](https://wordpress.org/support/users/davidlillo/)
 * (@davidlillo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/#post-16188221)
 * Great [@akide](https://wordpress.org/support/users/akide/) We’re glad we could
   help you. If you have a little time you can post us a valuation🫶. Thank you 
   very much for using Joinchat
 *  Thread Starter [akide](https://wordpress.org/support/users/akide/)
 * (@akide)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/#post-16195606)
 * Review just done.
    Thanks a lot again [@davidlillo](https://wordpress.org/support/users/davidlillo/)
   and [@creapuntome](https://wordpress.org/support/users/creapuntome/)

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

The topic ‘Problem with Custom Type Post’ is closed to new replies.

 * ![](https://ps.w.org/creame-whatsapp-me/assets/icon-256x256.gif?rev=2699533)
 * [Joinchat - Enhanced "click to chat"](https://wordpress.org/plugins/creame-whatsapp-me/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/creame-whatsapp-me/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/creame-whatsapp-me/)
 * [Active Topics](https://wordpress.org/support/plugin/creame-whatsapp-me/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/creame-whatsapp-me/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/creame-whatsapp-me/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [akide](https://wordpress.org/support/users/akide/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/problem-with-custom-type-post/#post-16195606)
 * Status: resolved