Plugin Author
Ajay
(@ajay)
You can have two blocks, but there isn’t any functionality yet to select which post types are included in each list. You’ll end up having the same set of posts.
thanks for your reply.
ok, but how do I activate two blocks ?
Plugin Author
Ajay
(@ajay)
You’ll need to use the manual install option as detailed in the FAQ
https://wordpress.org/plugins/contextual-related-posts/faq/
Alternatively, use the shortcodes within your post
thanks. Final question:
So, if I add this to my template it will display related posts:
<?php if(function_exists(‘get_crp_posts’)) get_crp_posts($postid, $limit) ?>
Is there a way to select certain post-types (i.e. regular post or custom post type) within this function ?
Plugin Author
Ajay
(@ajay)
The above function returns an array of post IDs that are related to your list of posts
You can use the function get_post_type to get the post type of each ID and then choose what you want to do with it.