Shortcode
A shortcode is a small tag in square brackets that WordPress replaces with real content when the page is displayed.
In plain English
You type something like [contact_form] into a page. On the front end, WordPress hands that tag to whichever plugin registered it, and the plugin returns a whole form in its place.
It is the oldest way plugins put dynamic things into ordinary content, and it still works everywhere: the block editor, a page builder, a widget, even inside a theme file.
Why it matters
It is the universal connector. Any plugin, any builder, any theme, one line. When something has to work in a place a builder widget cannot reach, a shortcode gets there.
It is also how custom functionality stays editable. The logic lives in one place, and the page just says put it here.
How it works
-
A plugin registers the tagNaming it and pointing it at a function that returns HTML.
-
You place the tag in contentIn a page, a post, a widget or a builder text field.
-
WordPress finds it while renderingScanning the content for anything in square brackets it recognises.
-
The function’s output replaces itAttributes inside the brackets are passed along as settings.
An unrecognised shortcode shows as text
If you see the raw brackets on the front end, the plugin that owns the tag is deactivated, renamed, or gone. The page is fine; the tag has nobody to answer it.