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

How to add custom post type for this?

Nandor Csuja

Member
XFtoWP
Messages
6
Reaction score
0
Guy !
I get this link:
That it should allow to use custom post types, ok, but how do I write it down?

Like if my custom post type ID is 666 how do the code look like?
/**
* Add XFtoWP meta boxes to custom post types.
*
* @since 1.0
*/

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

so it will be

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

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

or what?

Also what if I have more then one custom post type?
 
Back
Top