I’ve figured out what I think is the best way to approach it but I still need help with its completion:
I use:
<?php query_posts(array('category_name' => 'news', 'post__not_in' => array(31))); ?>
This would exclude, in this instance, the post with the ID of 31.
So now I need to make it dynamic. My knowledge of php isn’t great, but I thought declaring a variable of the current post would work, so something like:
<?php
$excludeid = 31;
query_posts(array('category_name' => 'news', 'post__not_in' => array($excludeid)));
?>
This worked fine. So to make it dynamic my logic was to go with:
$excludeid = the_ID();
But this just doesn’t work, would anybody help me to try and make this dynamic?
Thanks