Title: combine 2 statements
Last modified: August 22, 2016

---

# combine 2 statements

 *  [keesjan](https://wordpress.org/support/users/keesjan/)
 * (@keesjan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/combine-2-statements/)
 * ICL_LANGUAGE_CODE == ‘nl’ &&
    in_category( ‘support’ )
 * Is this the correct way to:
    only show widget when wpml is NL and there is a 
   slug in the page is /support/
 * widget included on:
    /nl/support/ /nl/support/question
 * widget excluded on:
    /de/support/ /de/support/question /nl/other-category/
 * I tried several combinations but still don’t get it to work…
 * [https://wordpress.org/plugins/widget-logic/](https://wordpress.org/plugins/widget-logic/)

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

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/combine-2-statements/#post-5836766)
 * I don’t use WPML, but it looks like you are on the right track.
 * certainly try the parts separately `ICL_LANGUAGE_CODE == ‘nl’` in one widget 
   for instance.
 * in_category() will work on individual posts in a specified category , so if that’s
   what the URL means yes that should work too, and combining them with && will 
   show them when both statements are true
 *  [giuseppecuttone](https://wordpress.org/support/users/giuseppecuttone/)
 * (@giuseppecuttone)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/combine-2-statements/#post-5836842)
 * Hi,
    I have used the following codec: “!is_user_logged_in()” in order to make
   disappear (to do away) a widget from sidebar, when user is log in. Now widget
   has disapper from all pages of my web, but no from my HOME PAGE. Can you hep 
   me? what is the complete codec in order to do disappear widjet from all page 
   and HOME PAGE too? Thank’s a lot for your support. Good work.
 *  [giuseppecuttone](https://wordpress.org/support/users/giuseppecuttone/)
 * (@giuseppecuttone)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/combine-2-statements/#post-5836843)
 * Sorry, I want open a new topic but I have had a mistake and I have published 
   here…
    I will go to open a new topic… but if you know the solution you can publish
   here… I thank you also. 😉 Good work.

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

The topic ‘combine 2 statements’ 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/)

## Tags

 * [combination](https://wordpress.org/support/topic-tag/combination/)

 * 3 replies
 * 3 participants
 * Last reply from: [giuseppecuttone](https://wordpress.org/support/users/giuseppecuttone/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/combine-2-statements/#post-5836843)
 * Status: not resolved