Title: hide current post
Last modified: August 30, 2016

---

# hide current post

 *  [Terry Atkinson](https://wordpress.org/support/users/terry-atkinson/)
 * (@terry-atkinson)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/hide-current-post-1/)
 * I love this plugin. There was one thing I wanted – to be able to hid the current
   post from the sidebar. There’s a thread on this support forum about this which
   was closed with no solution. I’ve found a solution that is OK for me as I don’t
   use a sidebar on the home page. So what I do is to make any post that I don’t
   want to appear in a given sidebar a sticky post. Then I click hide sticky posts
   in the widget filter. A bit of a gash workaround but does the job for me. Maybe
   will help someone else?
 * [https://wordpress.org/plugins/ultimate-posts-widget/](https://wordpress.org/plugins/ultimate-posts-widget/)

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

 *  [SomniumLucidus](https://wordpress.org/support/users/somniumlucidus/)
 * (@somniumlucidus)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/hide-current-post-1/#post-6807669)
 * I agree, this plugin definitely needs the ability to hide the current post. It’s
   a basic feature for a “similar posts” widget.
 *  [paperboy](https://wordpress.org/support/users/paperboy/)
 * (@paperboy)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/hide-current-post-1/#post-6807682)
 * Without “Hide current” and the ability to offset I can’t use this. :/
 *  [outofhouse](https://wordpress.org/support/users/outofhouse/)
 * (@outofhouse)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/hide-current-post-1/#post-8939498)
 * It would be fairly easy for the author to add this functionality and it would
   really make the plugin a lot better.
 * If you don’t mind hacking the plugin, you could change the code in ultimate-posts-
   widget.php
 * Add an extra array in the section starting at line 167.
 * The full section looks like this:
 *     ```
       $args = array(
               'posts_per_page' => $number,
               'order' => $order,
               'orderby' => $orderby,
               'category__in' => $cats,
               'tag__in' => $tags,
               'post_type' => $types,
               'post__not_in' => array($post->ID)
             );
       ```
   
    -  This reply was modified 9 years, 2 months ago by [outofhouse](https://wordpress.org/support/users/outofhouse/).
 *  [Hadi Nugraha](https://wordpress.org/support/users/hadingr/)
 * (@hadingr)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/hide-current-post-1/#post-9303132)
 * Awesome [@outofhouse](https://wordpress.org/support/users/outofhouse/). It works.
   
   Thank you

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

The topic ‘hide current post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-posts-widget_5b9f2b.svg)
 * [Ultimate Posts Widget](https://wordpress.org/plugins/ultimate-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-posts-widget/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [Hadi Nugraha](https://wordpress.org/support/users/hadingr/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/hide-current-post-1/#post-9303132)
 * Status: not resolved