Title: nadiaa's Replies | WordPress.org

---

# nadiaa

  [  ](https://wordpress.org/support/users/nadiaa/)

 *   [Profile](https://wordpress.org/support/users/nadiaa/)
 *   [Topics Started](https://wordpress.org/support/users/nadiaa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nadiaa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nadiaa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nadiaa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nadiaa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nadiaa/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Sharify Social Share Buttons] Manual insert](https://wordpress.org/support/topic/manual-insert/)
 *  Thread Starter [nadiaa](https://wordpress.org/support/users/nadiaa/)
 * (@nadiaa)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/manual-insert/#post-5889649)
 * Perfect, thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [List other posts from current category](https://wordpress.org/support/topic/list-other-posts-from-current-category/)
 *  [nadiaa](https://wordpress.org/support/users/nadiaa/)
 * (@nadiaa)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/list-other-posts-from-current-category/#post-795060)
 * 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&amp;width=65&amp;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?

Viewing 2 replies - 1 through 2 (of 2 total)