• Resolved akide

    (@akide)


    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

    (@creapuntome)

    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 2 years ago by Creame.
    Thread Starter akide

    (@akide)

    Thank you very much, this piece of code was really helpful for me.
    Thank you so much.

    Plugin Contributor davidlillo

    (@davidlillo)

    Great @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

    (@akide)

    Review just done.
    Thanks a lot again @davidlillo and @creapuntome

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with Custom Type Post’ is closed to new replies.