By the way I find this pluginreally useful and hope you are still developing it.
I’m having a problem with multiple cpts
MRP_get_related_posts( $post->ID, false, true, array(‘post’, ‘weblinks’) )
single cpt works fine
MRP_get_related_posts( $post->ID, false, true, ‘weblinks’ )
Can you help?
I know that this is probably a day late and a dollar short, but the plugin developer was assuming the post_type would be a number and didn’t format it correctly. If you do a search on /plugins/microkids-related-posts/microkids-related-posts.php for this …
$query .= " AND wp.post_type IN (".implode( ",", $post_type ).") ";
and replace with …
$query .= " AND wp.post_type IN ('".implode( "','", $post_type )."') ";
it should work.
Note: There are multiple occurrences of this in the code.
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Microkid's Related Posts] Multiple Custom post types’ is closed to new replies.