WordPress.org

Ready to get started?Download WordPress

Forums

Excluding current post from Related Posts (1 post)

  1. animeshtripathi
    Member
    Posted 2 years ago #

    Hi, this is my blog. As you can see on the right hand side, the current post is also being displayed in the Related Posts section. (last item)

    I'm using the following code to do it: http://pastebin.com/2bHbTtVA

    I'm using post_not_in in the function. What could be the problem?

    Alchymyth, do you have a suggestion for this?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by animeshtripathi
  • This topic is not resolved
  • WordPress version: 3.3.1