Just made it work 🙂
I did the following:
made this outside the loop:
<?php $test = get_the_ID(); ?>
then called it inside:
<?php if ( $post->ID == $test ) { ?>
works perfectly.
thanks for the tip on the post->ID!
Hi Alchymyth.
yeah this seems to work. but not my whole script is doing what i thought it would.
if i do this:
<?php if ( $post->ID ) { ?>
and i echo $post->ID, it echo’s the ID numbers of the single posts. I would like it to echo the current post i’m viewing at the moment, outside of that loop.. (for instance, i’m at p=84, all posts in the menu that dont equal the single post should say No, the one post that does equal the single post i’m on says yes…
am i making some sense?