Hi there, I have been through all the above options, and none quite work for me. On an individual post page, I want to display all other posts from the same category, but also with the option to exclude certain categories.
I am only displaying thumbnails, and so the available plugins don’t work for me as they are not flexible enough.
I currently have
<?php $my_query = new WP_Query('category_name='. $category->term_id); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><?php get_the_image( 'default_size=thumbnail&width=65&height=65' ); ?></li>
<?php endwhile; ?>
However this displays all thumbnails, not current category.
1) how do I alter the above code to show current categories only
and
2) once I have the current categories, how do I omit certain ones?