I don’t know of an official escape syntax for shortcodes and there likely isn’t one.
When wordpress parses for shortcodes it looks for [ and ]. If you want to use square brackets within a shortcode, using the respective html ASCII entities escapes them.
I.e. replacing [ by [
and ] by ]
. WordPress will not recognize ]
as the end of the shortcode.
Whether that serves your purpose obviously depends on whether it gets converted to ] before being passed to the Google Maps API or whether the API handles it as expected. I have no experience with that, so can’t say.
Related Posts:
- Pass boolean value in shortcode
- Implement If-ElseIf-Else-EndIf with short codes
- using html as shortcode attribute
- shortcode outputs first before the page content [duplicate]
- Are php template shortcodes ok?
- Extract attribute values from every shortcode in post
- How to make shortcode to hide selection of text from post or page?
- how to get shortcodes to work inside the text of custom fields
- Shortcode attribute value with dash (hyphen)
- Shortcode content does not show in feed discription/excerpt
- How do I create shortcodes for my wordpress themes?
- Execute shortcode only in another shortcode
- Adding shortcode inside Visual Composer raw HTML [closed]
- Shortcode not working inside html input
- Multiple loops on page only show taxonomy name of first loop
- Add attribute to existing Shortcode
- How to link to a alternative page in CSS
- How to handle a shortcode function directly?
- manipulate a plugins shortcode
- What is the $atts parameter in shortcode_atts()?
- Shortcodes output in the wrong order
- How to link to a page that has a shortcode?
- Adding short codes from a page’s content on header and hiding the same from page’s content
- Should I cache default WordPress gallery shortcode output?
- Audio and video shortcodes not working properly
- How to load shortcode sooner
- Tinymce list of shortcodes button
- Add page title as a javacript variable to specific posts
- How to create a shortcode for custom page template
- How to add and submit input fields using a shortcode?
- Pass javascript array to shortcode
- What is wrong with my rewrite rule for a page URL with query parameters and short codes?
- Shortcode: display list of created shortcode in popup
- Shortcode return $content vs do_shortcode($content)
- Use shortcodes in custom metabox using wp_editor?
- Shortcode not working with WordPress updated
- WordPress Shortcode callback function with a plugin
- Where to filter Shortcode string prior to execution
- Media added with shortcodes not “linked” with post
- Specifying a single file from multi-file GIST (wordpress.com) [closed]
- Problem with multiple shortcode in page template
- Saving post content to database with do_shortcode?
- Is it important to sanitize inputs in a shortcode that will be used in site that only I will post to?
- Shortcode callback for add_action(‘wp_footer’)
- Get page content and execute shortcodes on a page
- Shortcode Function not working
- Using shortcode to display array in array
- Adding JS in header when using wp_enqueue_script in a shortcode
- Custom recent-posts shortcode’s thumbnail image not in line with rest of code
- How can i share codes on my blog?
- How to dynamically add wordpress shortcodes
- Why does WP display the actual shortcode not the string that’s meant to replace it?
- Getting error on submitting form using Ajax with shortcode
- Using the title of the post in a shortcode
- shortcode with conditional results if logged in
- Can I pass parameters to the add_shortcode() function?
- Hijack WordPress Shortcode attribute
- How to find specific shortcodes in a post or in a widget and pass them to a variable?
- how can I change my font color for Shortcode [closed]
- Create a function to display HTML/data based on site admins role?
- AJAX and do_shortcode
- FontAwesome Shortcode isn’t working properly
- Change variable value for different shortcode attributes?
- Custom user registration shortcode – redirect header issue
- Call Shortcode on wp_footer
- How to copy [gallery] shortcode between posts using polylang [closed]
- Shortcode not displaying video as expected
- Adding shortcode of “Random Content” Plugin in the post after the title
- How to Display Shortcode’s Content after Short Product Description?
- From a shortcode I want to pass a value to display a different page
- Jetpack gallery shortcode with slideshow
- Shortcode atts for WP Query args
- How to use code in an editor block?
- return an array with a shortcode
- Hide password protected dynamic content in templates via shortcode
- Shortcode callback not called
- PHP not outputting the onclick in anchor tag
- Create Button for Shortcode in Text Editor
- Send Mail with link to current_user
- shortcode atts not working
- do_shortcode for is_page(slug)
- Custom Login in Shortcode got error
- Nested WordPress Shortcodes of Different Types
- Created a shortcode, using it twice (but differently) on a page but its just outputting the same one twice
- Access Shortcode in ajax code?
- WordPress Not rendering short code properly?
- Initialize add_action() for every copy of a specific shortcode
- WP_Editor Shortcode Issue
- Shortcodes that are created based on user input information
- Remove some tags from shortcodes output? Trying to fix autop
- do_shortcode & render custom field won’t work
- shortcodes inside shortcode to sum values
- is_mobile as shortcode
- How to attach sidebar to shortcode’s output?
- Is it possible to change a shortcode parameter based on a media query?
- Shortcode append to the the_content()
- Wrapping a function in html tag and return?
- Working with Shortcode, AJAX, Elementor
- How to exclude some cats from wp_list_categories using shortcut
- How can I create a shortcode that shows a list of categories on the single product page?