Title: Widget exclude current posts
Last modified: July 12, 2018

---

# Widget exclude current posts

 *  Resolved [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/widget-exclude-current-posts/)
 * I have now the “current category” in the sidebar. is it possible to exclude the
   current post of the listing?
 * Second question: Now it is possible to ad “catlink” to the widget title. Is it
   possible to link to the category, but write another widget title? like “more 
   from this topic”?

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

 *  [jbt-csm](https://wordpress.org/support/users/jbt-csm/)
 * (@jbt-csm)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/widget-exclude-current-posts/#post-10489933)
 * Hi Monika21,
 * > is it possible to exclude the current post of the listing?
 * Simplest way to accieve this would be to exclude it’s appearance in the frontend
   by triggering it’s CSS class.
 * The current post has the CSS class “current” – I use this to give it a highlight
   in the list of the current category posts. But as well you could give it something
   like
 * `li.current { display:none; }`
 * That would do the trick in the frontend.
    -  This reply was modified 7 years, 10 months ago by [jbt-csm](https://wordpress.org/support/users/jbt-csm/).
 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/widget-exclude-current-posts/#post-10490071)
    1. Yes, in the widget options type `this` in the “Exclude posts (id’s)” field.
    2. No, this is not possible. You could achieve something similar by using the LCP
       shortcode in a text widget. `[catlist name=cats morelink="more from this topic"]`
       would work but the link would be inserted _after_ the post list so this wouldn’t
       affect the title.
 *  Thread Starter [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/widget-exclude-current-posts/#post-10505295)
 * 1. Thank you for the tip! It works!
 * 2. This would be a great feature

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

The topic ‘Widget exclude current posts’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [monika21](https://wordpress.org/support/users/monika21/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/widget-exclude-current-posts/#post-10505295)
 * Status: resolved