[ad_1]
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 4 hours, 5 minutes ago by Creame.
Thread Starter
akide
(@akide)
Thank you very much, this piece of code was really helpful for me.
Thank you so much.
