• I am trying to check and see if an post in my query matches the current post. I have tried the code below but it doesn’t seem to work. Any help would be much appreciated

    The exact line is: if(is_object($post) && $post->ID == $this_post->ID)

    [Code moderated as per the Forum Rules. Please use the pastebin]

The topic ‘Match Current Post ID’ is closed to new replies.