Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcode show if question #48

Closed
jenhuls opened this issue Aug 1, 2018 · 3 comments
Closed

Shortcode show if question #48

jenhuls opened this issue Aug 1, 2018 · 3 comments

Comments

@jenhuls
Copy link

jenhuls commented Aug 1, 2018

I have three subscribe forms based on Geolocation. So, if you're in Virginia, you see the Virginia form, Colorado, that specific form and Georgia, that form.

Is there a way to make the "Virginia" form a default display for other states? So if you're visiting the site from Maryland, North Carolina, etc. show the Virginia form but if you're from Georgia you see the Georgia form and Colorado, the Colorado form.

Thanks!

@benjaminpick
Copy link
Member

benjaminpick commented Aug 1, 2018 via email

@jenhuls
Copy link
Author

jenhuls commented Aug 1, 2018

Would I use the shortcode [geoip_detect2_show_if country="US" state="Texas" not_state="Georgia, Colorado"] or [geoip_detect2_hide_if lang="en" country="US" not_state="Georgia, Colorado"]?
Thanks!

@benjaminpick
Copy link
Member

[geoip_detect2_show_if country="US" state="Texas" not_state="Georgia, Colorado"] - giving a state and a not_state is redudant, because both need to be fulfilled at the same time. This shortcode will only show if the state is Texas (because then it will also be not Georgia and not Colorado).

[geoip_detect2_hide_if lang="en" country="US" not_state="Georgia, Colorado"] - close. You want to show it, so:
[geoip_detect2_show_if lang="en" country="US" not_state="Georgia, Colorado"] . I hope this will get a lot easier when done visually, see #47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants