Shortcodes in billing fields doesn’t work

The “official” answer is that you need to use do_shortcode() to process the shortcode as you can’t just simply apply a shortcode within the code. Here’s your original code with the “official” do_shortcode() way: add_filter( ‘woocommerce_checkout_fields’, ‘set_checkout_field_input_value_default’ ); function set_checkout_field_input_value_default($fields) { $fields[‘billing’][‘billing_city’][‘default’] = do_shortcode( ‘[geoip_detect2 property=”city”]’ ); $fields[‘billing’][‘billing_state’][‘default’] = do_shortcode( ‘[geoip_detect2 property=”mostSpecificSubdivision”]’ ); return $fields; … Read more

WordPress keeps automatically inserts

Try putting the 2nd line (the first code line) just after the shortcode, as in [sourcecode language = python]a+b=c f = 1 + 3 c = 12 + 13 (not actually code, but you see what I did.) You put a blank line after the shortcode, which was interpreted as a Just guessing here; you … Read more

Unknow shortcode read on display site

That’s not an HTML tag, it’s a shortcode. If your theme used the the_excerpt() function for displaying the ‘compact version’ of the post content then this wouldn’t appear. WordPress strips shortcodes out of post excerpts to prevent this happening. If your theme is using its own method for generating the excerpt then its developer needs … Read more

Video Short Code and Media Fragments URI

Try embedding your video like this: <video controls> <source src=”https://www.domain.com/wp-content/uploads/2018/07/5898ca6e5276e4cd97c0bd730a2ed82c11780595-480p__80044.mp4#t=18″ type=”video/mp4″ /> </video> Paste this in your editor but make sure on the top right it is set to “Text” not “Visual”. When you switch it back to “Visual” you will just see blank gray frame. Preview the post and you should see the video … Read more