query_posts exclude current post
-
Hello, I’m using this to show some related post… but I don’t know how to exclude a post by current id, Example: In a post I have #A – related posts shows: #A, #D, #K
Is there a way to exclude the (#A related post) from (#A post) ?
The code:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Any help would be greatly appreciated.
The topic ‘query_posts exclude current post’ is closed to new replies.