boolean shortcode options not interpreted correctly
-
according to the examples at http://wpstorelocator.co/document/shortcodes/, specifying a value of
"false"for e.g. thecountryoption 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.
The topic ‘boolean shortcode options not interpreted correctly’ is closed to new replies.