Title: operator=&#8221;or&#8221;
Last modified: May 14, 2024

---

# operator=”or”

 *  Resolved [Anna Meurer](https://wordpress.org/support/users/almstudio/)
 * (@almstudio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/operatoror/)
 * Hi,
 * I try to show/hide some content for visitors from Mönchengladbach (and Erkelenz).
   So I tried this shortcode:
 * [geoip_detect2_show_if city=”Mönchengladbach” operator=”or” city=”Erkelenz”]
 * But this one doesn’t work correctly, only for the city „Erkelenz“, but not for„
   Mönchengladbach“. Any idea, why this could be? Or is it not possible to check
   for two cities with the operator or?
 * Thanks for any help
   Anna
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foperatoror%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Benjamin Pick](https://wordpress.org/support/users/benjaminpick/)
 * (@benjaminpick)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/operatoror/#post-17753208)
 * You got it almost right. The problem is that WordPress can’t take two parameters
   with the same attribute name “city”, so instead you can write:
 * [geoip_detect2_show_if city=”Mönchengladbach,Erkelenz”]
 *  Thread Starter [Anna Meurer](https://wordpress.org/support/users/almstudio/)
 * (@almstudio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/operatoror/#post-17753223)
 * Aaaahhhhh – ok, thank you so much 🤗 this explains everything 😂
 * You made my day.
   CheersAnna

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

The topic ‘operator=”or”’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Anna Meurer](https://wordpress.org/support/users/almstudio/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/operatoror/#post-17753223)
 * Status: resolved