• according to the examples at http://wpstorelocator.co/document/shortcodes/, specifying a value of "false" for e.g. the country option on the [wpsl_address] shortcode should prevent the country field from being displayed, however this doesn’t work.

    i’ve tried using double, single and no quotes, but none have any effect. specifying a value of 0, does work which leads me to suspect that the string "false" doesn’t end up getting treated as a boolean value, whereas class-frontend.php seems to be expecting boolean values.

    if ( $atts['country'] && ...

    i hope the above makes sense.

Viewing 1 replies (of 1 total)
  • Confirming this same issue: attr=”0″ works but attr=”false” does not. Maybe docs just need to be updated to use 0’s and 1’s?

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘boolean shortcode options not interpreted correctly’ is closed to new replies.