Title: Widget Logic &#8211; posts
Last modified: February 25, 2018

---

# Widget Logic – posts

 *  Resolved [dloverly](https://wordpress.org/support/users/dloverly/)
 * (@dloverly)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/widget-logic-posts/)
 * I’m confused with the condition tags. What code do I type in the box to make 
   the widget appear on all the posts, include single posts, but non of the pages.
 * My home page is static.
 * Thank you,
    Dee

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

 *  [WPChef](https://wordpress.org/support/users/wpchefgadget/)
 * (@wpchefgadget)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/widget-logic-posts/#post-10023378)
 * Hi Dee,
 * Try this:
 * `get_post_type() == 'post' || get_query_var('post_type') == 'post'`
 * Also check the “Use ‘wp_reset_query’ fix” checkbox.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#avoid-signatures)]_
    -  This reply was modified 7 years, 9 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Thread Starter [dloverly](https://wordpress.org/support/users/dloverly/)
 * (@dloverly)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/widget-logic-posts/#post-10034000)
 * Thank you very much!!
    This appears to have done the job.
 * Dee

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

The topic ‘Widget Logic – posts’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [dloverly](https://wordpress.org/support/users/dloverly/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/widget-logic-posts/#post-10034000)
 * Status: resolved