Shortcode
A WordPress shortcode is a compact bracketed token that is expanded into generated content when WordPress processes a post or page.
Shortcodes are registered by themes or plugins and may accept attributes. Blocks are preferred for many newer editing experiences, but shortcodes remain widely supported.
Text syntax that expands into generated output
Shortcodes are registered by themes or plugins and may accept attributes. Blocks are preferred for many newer editing experiences, but shortcodes remain widely supported. In practical terms, Shortcode belongs to the publishing and site-management layer. Knowing that layer is important because it tells you what the term can change, what it cannot change, and where to look when something behaves unexpectedly.
A shortcode parsed into a callback result
[gallery] is shortcode syntax that WordPress expands into generated output when the content is rendered.
Where shortcodes survive in WordPress content
You do not need to memorize the term in isolation. It becomes useful when you can recognize it in the tool, browser, file or conversation where the concept is doing real work.
A shortcode is not a block
A WordPress shortcode is a compact bracketed token that is expanded into generated content when WordPress processes a post or page. By contrast, The WordPress Block Editor is the editing interface that represents page and post content as individual blocks. The two can appear in the same project, but they describe different parts of the work and should not be used as interchangeable labels.
The mistake: hiding complex content behind opaque codes
The common mistake is to use Shortcode as if it also meant Block Editor. That blurs two separate decisions and usually sends troubleshooting in the wrong direction. A better test is practical: Shortcodes are convenient but can create content lock-in if a plugin is removed; prefer blocks when an equivalent block exists.
Why migration becomes harder when shortcodes dominate
In day-to-day work, Shortcode matters when the concept needs to be identified precisely instead of being grouped with a nearby term. The practical value is not the vocabulary itself; it is being able to identify the right control, file, setting or decision when the concept becomes relevant.
[gallery] is shortcode syntax that WordPress expands into generated output when the content is rendered. That example is useful because it turns the definition into something you can recognize, test and discuss with other people working on the same project.
Related terms worth learning next
Sources and further reading
Use these references when you need documentation-level detail, specifications or product-specific behavior beyond the plain-English explanation above.