Someone Please Help : (
-
Hi everyone could somebody please help me out. I’ve been having this problem for some time but can’t seem to find a solution anywhere!!
OK Basically i’m trying to show Related Posts. My Site is music based.
Every Post has a tag of the artist name, lets say “bob”
The same post has a custom field $artist that also contains $bobOK to show the related posts after my post content I am doing the following:
<?php endwhile; rewind_posts(); query_posts(array( 'tag_slug__and'=>array($vart), ) );?>
This Works Fine, but ONE problem. It is showing the current post in the result of the related posts, as obviously it matches the criteria. I need a way to eliminate the current post that has just been displayed from my related posts?
Is there another way I could go about this? Displaying All the Related Posts with the Same Custom Field but not the post that has just been displayed!!
Any help is really apprecicated!!
- The topic ‘Someone Please Help : (’ is closed to new replies.