Support » Plugin: Contextual Related Posts » Current post included in get_crp_posts_id list

  • Is there a way to exclude the current post from the get_crp_posts_id output?

    I am using get_crp_posts_id to get a list of IDs of related posts to a current post. The problem I have is that get_crp_posts_id is sometimes giving the ID of the current post in the list of related posts.

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    That shouldn’t really be the case because the mySQL by default excludes the current post ID.

    Can you do some tests using the Query Monitor plugin which should hopefully allow you to see what queries are being generated by the plugin on the post you’re viewing

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.