Opened 5 years ago
Closed 5 years ago
#49036 closed defect (bug) (invalid)
existent shortcodes parsed if wrapped inside <code> tag
Reported by: | axewww | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Shortcodes | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
[mycustomshort]
no way i try to add something like this into a post, that may need to be a documentation, so code should display as is and not parsed.
If i go to add any shortcode that is recognized as valid/existent, it is by the way parsed as shortcode even if wrapped inside <pre><code>
tags:
All ok about this?
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello @axewww
If you want to not render shortcodes you can escape them by doubling the brackets, like in
[[mycustomshort]]
. For more see https://codex.wordpress.org/Shortcode#Escaping_Shortcodes.