TranslatePress + Contextual Related Posts
-
Hi,
I’m the author of Contextual Related Posts. A user of our plugins posted a query out here and as I’m stuck on how TranslatePress works, hence my post.
When browsing the English (default) language, my plugin properly detects the post title and content and passes this to the CRP_Query (which is a wrapper for WP_Query). However, when browsing the translated post, it only thinks it has blank strings and as a result my plugin can’t find any related posts.
I’m not sure why that happens. Would you have any ideas?
If it helps, here is the code used to get the post title and content of the post to be translated.
https://github.com/WebberZone/contextual-related-posts/blob/v3.3.4/includes/class-crp-query.php#L446
- The topic ‘TranslatePress + Contextual Related Posts’ is closed to new replies.