YARPP and Custom Post Type with Types/Views
-
Just want to post the solution of integrating YARPP and CPT created using Types. Quoted from their support forum:
Please try Types fiter hook “wpcf_type”, like this:
add PHP codes in your theme/functions.phpadd_filter('wpcf_type', 'yarpp_support_func', 10, 2); function yarpp_support_func($data, $post_type) { if(in_array($post_type, array( 'my-post-type-one', 'my-post-type-two', ))) { $data['yarpp_support'] = true; } return $data; }
Please replace “my-post-type-one” and “my-post-type-two” with your custom post type slugs
This works for me and I can see my custom post type checkbox in YARPP setting page. HTH!
Source: http://wp-types.com/forums/topic/related-posts/
http://wordpress.org/plugins/yet-another-related-posts-plugin/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘YARPP and Custom Post Type with Types/Views’ is closed to new replies.