• Welcome to the all-new Kolakube support, the official place to get help for Marketers Delight, XFtoWP, CryptoWP, and other WordPress products! Please login with your account details to access members-only support forums.

Comments Integration with The Events Calendar events

JBS

Member
XFtoWP
Messages
12
Reaction score
3
Is it possible to have threads as comments for events in this plugin?


Here is an example of an event.


Ideally... I want to link one thread from Xenforo to several events.
 

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,771
Reaction score
1,918
Yes, you can add XFtoWP to any custom post type. You just need to pass the post type ID to a filter in XFtoWP.

I believe the post type name for The Event Calendar is tribe_events

Paste the script from this doc into your child theme or custom functions file:

 
  • Thank you
Reactions: JBS
Comment

JBS

Member
XFtoWP
Messages
12
Reaction score
3
The meta box appears in the event in the admin area... but I can't get the comments to appear on the front side. Here is the code I am using...

CSS:
/**
 * Add XFtoWP meta boxes to custom post types.
 *
 * @since 1.0
 */

function xftowp_custom_post_types( $post_types ) {
    $post_types[] = 'tribe_events';
    $post_types[] = 'stream';
    return $post_types;
}
add_filter( 'xfwp_comments_post_types', 'xftowp_custom_post_types' );
 
Comment

JBS

Member
XFtoWP
Messages
12
Reaction score
3
Ok... it seems to show unless I use the "replace comments" option... which is the one I use.
 
Comment

JBS

Member
XFtoWP
Messages
12
Reaction score
3
@Alex You are awesome! I'm an idiot... I had comments globally disabled in the events calendar options.
 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,771
Reaction score
1,918
Ok... it seems to show unless I use the "replace comments" option... which is the one I use.
As long as a post type supports comments, XFtoWP can plug right in. (y)

@Alex You are awesome! I'm an idiot... I had comments globally disabled in the events calendar options.
Haha that plugin has a lot of settings so it's easy to overlook!
 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,771
Reaction score
1,918
$post_types[] = 'stream';
By the way, you can remove this line as it does not apply to your site. That was just example code to show how to add multiple post types to the code.
 
  • Like
Reactions: JBS
Comment
Top