Opened 7 years ago
Closed 7 years ago
#49036 closed defect (bug) (invalid)
existent shortcodes parsed if wrapped inside <code> tag
| Reported by: | axewww | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Shortcodes | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.