Problem with Custom Type Post

[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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer