How to allow multiple post types in related post module
-
Good morning jetpack team, I am very happy using your plugin. It is really the best of all. However, I have a sort of tech something problem. please help me with this.
I found this code to allow a different post type.
function allow_my_post_types($allowed_post_types) {
$allowed_post_types[] = ‘wpdmpro’;
return $allowed_post_types;
}
add_filter( ‘rest_api_allowed_post_types’, ‘allow_my_post_types’ );however, because I am not an expert, I dont know how to allow other post types aside from ‘wpdpro’. I want to allow ‘topic’ and ‘dwqa-question’ also. (sorry just learning by myself)
Hope you can guide me here.
And one more thing, is the related post module will work in bb press topics? thank you so much in advance. I hope for the continuous success of everybody in your team.
- The topic ‘How to allow multiple post types in related post module’ is closed to new replies.