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


    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)
  • The topic ‘Current post included in get_crp_posts_id list’ is closed to new replies.