{"id":44121,"date":"2026-05-23T16:20:52","date_gmt":"2026-05-23T16:20:52","guid":{"rendered":"https:\/\/getshortcodes.com\/?post_type=docs&#038;p=44121"},"modified":"2026-05-23T16:21:38","modified_gmt":"2026-05-23T16:21:38","slug":"how-to-use-shortcodes-in-wordpress","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/how-to-use-shortcodes-in-wordpress\/","title":{"rendered":"How to Use Shortcodes in WordPress"},"content":{"rendered":"\n<p>Add shortcodes to WordPress pages, posts, widgets, theme files and the Block Editor \u2014 manually or with <strong>Shortcodes Ultimate<\/strong>.<\/p>\n\n\n\n<p>WordPress shortcodes are small pieces of code wrapped in square brackets, such as <code><\/code> or <code><a href=\"https:\/\/getshortcodes.com\" class=\"su-button su-button-style-default\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:5px\" target=\"_self\"><span style=\"color:#FFFFFF;padding:0px 16px;font-size:13px;line-height:26px;border-color:#6cadf4;border-radius:5px;text-shadow:none\"> <\/span><\/a><\/code>. They let you insert dynamic content, buttons, tabs, accordions, galleries, videos, boxes and other content elements without writing full HTML, CSS or PHP.<\/p>\n\n\n\n<p>With <strong>Shortcodes Ultimate<\/strong>, you can generate and insert ready-made shortcodes visually, preview them before publishing, and use them in the Block Editor, Classic Editor, widgets and theme template files.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Install Shortcodes Ultimate for Free<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"quick-answer-how-do-you-use-a-shortcode-in-wordpress\">Quick Answer: How Do You Use a Shortcode in WordPress?<\/h2>\n\n\n\n<p>To use a shortcode in WordPress, copy the shortcode provided by WordPress, your theme, or a plugin, then paste it into a place where WordPress processes shortcodes.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Where you want to add it<\/th><th>Best method<\/th><\/tr><\/thead><tbody><tr><td>Page or post in the Block Editor<\/td><td>Add a <strong>Shortcode<\/strong> block and paste the shortcode<\/td><\/tr><tr><td>Classic Editor<\/td><td>Paste the shortcode directly into the content<\/td><\/tr><tr><td>Widget area or sidebar<\/td><td>Add a <strong>Shortcode<\/strong> block or compatible widget<\/td><\/tr><tr><td>Theme file<\/td><td>Use <code>do_shortcode()<\/code> in PHP<\/td><\/tr><tr><td>Page builder<\/td><td>Use a shortcode widget or module if your builder supports it<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"https:\/\/example.com\"]Download Now&#091;\/su_button]<\/code><\/pre>\n\n\n\n<p>When the page is viewed on the front end, WordPress replaces the shortcode with the actual button, gallery, tab, accordion or other content element.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Get 50+ Ready-Made Shortcodes<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-wordpress-shortcode\">What Is a WordPress Shortcode?<\/h2>\n\n\n\n<p>A WordPress shortcode is a shortcut that tells WordPress to output something more complex than plain text. Instead of writing full code, you place a small tag inside square brackets.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;gallery ids=\"12,34,56\"]<\/code><\/pre>\n\n\n\n<p>A shortcode can also include attributes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"https:\/\/example.com\" target=\"blank\" style=\"flat\"]Visit Website&#091;\/su_button]<\/code><\/pre>\n\n\n\n<p>In this example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>su_button<\/code> is the shortcode name.<\/li>\n\n\n\n<li><code>url<\/code>, <code>target<\/code> and <code>style<\/code> are attributes.<\/li>\n\n\n\n<li><code>Visit Website<\/code> is the content inside the shortcode.<\/li>\n<\/ul>\n\n\n\n<p>Shortcodes are useful when you want reusable elements that can work across different parts of a WordPress site.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-use-a-shortcode-in-the-wordpress-block-editor\">How to Use a Shortcode in the WordPress Block Editor<\/h2>\n\n\n\n<p>The easiest manual method is to use the built-in <strong>Shortcode<\/strong> block.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-open-the-page-or-post\">Step 1: Open the page or post<\/h3>\n\n\n\n<p>Go to <strong>Pages<\/strong> or <strong>Posts<\/strong>, then open the content where you want to add the shortcode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-add-a-shortcode-block\">Step 2: Add a Shortcode block<\/h3>\n\n\n\n<p>Click the <strong>+<\/strong> button and search for <strong>Shortcode<\/strong>. You can also type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/shortcode<\/code><\/pre>\n\n\n\n<p>Then press Enter.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-paste-your-shortcode\">Step 3: Paste your shortcode<\/h3>\n\n\n\n<p>Paste your shortcode into the block:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_spoiler title=\"Read more\"]Hidden content goes here&#091;\/su_spoiler]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-preview-or-publish\">Step 4: Preview or publish<\/h3>\n\n\n\n<p>In the editor, you may still see the shortcode text. On the front end, WordPress will render the shortcode output.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Insert Shortcodes Faster with Shortcodes Ultimate<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-shortcodes-ultimate-makes-this-easier\">How Shortcodes Ultimate Makes This Easier<\/h2>\n\n\n\n<p>Manual shortcodes work, but writing shortcode syntax by hand can be slow. You need to remember the shortcode name, available attributes, formatting rules and correct closing tags.<\/p>\n\n\n\n<p><strong>Shortcodes Ultimate<\/strong> simplifies the process:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install the free plugin from WordPress.org.<\/li>\n\n\n\n<li>Open a page, post or supported editor area.<\/li>\n\n\n\n<li>Choose a shortcode from the plugin\u2019s library.<\/li>\n\n\n\n<li>Configure options visually.<\/li>\n\n\n\n<li>Preview the result.<\/li>\n\n\n\n<li>Insert the generated shortcode into your content.<\/li>\n<\/ol>\n\n\n\n<p>Instead of memorizing shortcode syntax, you can build elements like buttons, spoilers, tabs, accordions, boxes, columns, sliders, carousels and media embeds through a visual workflow.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Install Shortcodes Ultimate Free<\/a><\/strong><\/p>\n\n\n\n<p>Free plugin. Works with modern and classic WordPress workflows.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"where-can-you-add-wordpress-shortcodes\">Where Can You Add WordPress Shortcodes?<\/h2>\n\n\n\n<p>Shortcodes are flexible because they can be used in multiple areas of a WordPress site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-pages-and-posts\">1. Pages and Posts<\/h3>\n\n\n\n<p>Use a Shortcode block in the Block Editor, or paste the shortcode directly into the Classic Editor.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_tabs]\n  &#091;su_tab title=\"Overview\"]Product overview text&#091;\/su_tab]\n  &#091;su_tab title=\"Details\"]Product details text&#091;\/su_tab]\n&#091;\/su_tabs]<\/code><\/pre>\n\n\n\n<p>This is useful for landing pages, documentation, product pages, affiliate content and long-form posts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-wordpress-widgets-and-sidebars\">2. WordPress Widgets and Sidebars<\/h3>\n\n\n\n<p>To add a shortcode to a widget area:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Appearance \u2192 Widgets<\/strong>.<\/li>\n\n\n\n<li>Choose the widget area, such as Sidebar or Footer.<\/li>\n\n\n\n<li>Add a <strong>Shortcode<\/strong> block.<\/li>\n\n\n\n<li>Paste your shortcode.<\/li>\n\n\n\n<li>Save and check the front end.<\/li>\n<\/ol>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"\/contact\"]Contact Us&#091;\/su_button]<\/code><\/pre>\n\n\n\n<p>This is useful for sidebar CTAs, footer buttons, promo boxes, contact forms and reusable content blocks.<\/p>\n\n\n\n<p>If a shortcode appears as plain text instead of rendering, the widget area, theme or plugin may not be processing shortcodes in that location. In that case, use a Shortcode block, a plugin-supported widget, or ask a developer to enable shortcode processing safely.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-theme-template-files\">3. Theme Template Files<\/h3>\n\n\n\n<p>Developers can output shortcodes inside PHP theme files using <code>do_shortcode()<\/code>.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php echo do_shortcode('&#091;su_button url=\"https:\/\/example.com\"]Click me&#091;\/su_button]'); ?&gt;<\/code><\/pre>\n\n\n\n<p>You might use this in files such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>single.php\npage.php\nheader.php\nfooter.php\nsidebar.php\ntemplate-parts\/content.php<\/code><\/pre>\n\n\n\n<p>Use this carefully. Only place shortcode strings you control inside template files, and avoid processing untrusted user input.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-custom-page-templates\">4. Custom Page Templates<\/h3>\n\n\n\n<p>If your landing page has a custom PHP template, you can add a shortcode directly to the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;section class=\"landing-cta\"&gt;\n  &lt;?php echo do_shortcode('&#091;su_button url=\"\/pricing\" style=\"flat\"]View Pricing&#091;\/su_button]'); ?&gt;\n&lt;\/section&gt;<\/code><\/pre>\n\n\n\n<p>This is useful when you want a shortcode-powered section to appear automatically across specific templates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-page-builders-and-other-editors\">5. Page Builders and Other Editors<\/h3>\n\n\n\n<p>Many WordPress page builders include a shortcode widget or shortcode module. In that case, copy the shortcode generated by Shortcodes Ultimate and paste it into the builder\u2019s shortcode element.<\/p>\n\n\n\n<p>This is useful when you are building a page visually but still want reusable shortcode-powered components.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"manual-shortcode-examples\">Manual Shortcode Examples<\/h2>\n\n\n\n<p>Here are common shortcode patterns you may see in WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"simple-shortcode\">Simple shortcode<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;gallery]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"shortcode-with-attributes\">Shortcode with attributes<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;gallery columns=\"3\" size=\"medium\"]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"opening-and-closing-shortcode\">Opening and closing shortcode<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_box title=\"Important Note\"]\nYour content goes here.\n&#091;\/su_box]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"nested-shortcode-example\">Nested shortcode example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_tabs]\n  &#091;su_tab title=\"First tab\"]First tab content&#091;\/su_tab]\n  &#091;su_tab title=\"Second tab\"]Second tab content&#091;\/su_tab]\n&#091;\/su_tabs]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"php-template-example\">PHP template example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php echo do_shortcode('&#091;su_spoiler title=\"FAQ\"]Answer text goes here&#091;\/su_spoiler]'); ?&gt;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-use-a-shortcode-plugin-instead-of-writing-everything-manually\">Why Use a Shortcode Plugin Instead of Writing Everything Manually?<\/h2>\n\n\n\n<p>You can use WordPress shortcodes manually, but a shortcode plugin saves time when you need polished content elements without custom development.<\/p>\n\n\n\n<p>With <strong>Shortcodes Ultimate<\/strong>, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add visual elements without writing custom HTML and CSS.<\/li>\n\n\n\n<li>Use a visual shortcode generator.<\/li>\n\n\n\n<li>Preview shortcode output before publishing.<\/li>\n\n\n\n<li>Reuse the same type of element across pages, posts, widgets and templates.<\/li>\n\n\n\n<li>Keep content flexible across Block Editor and Classic Editor workflows.<\/li>\n\n\n\n<li>Improve older WordPress content that already relies on shortcodes.<\/li>\n<\/ul>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Install Shortcodes Ultimate for Free<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"popular-things-you-can-build-with-shortcodes-ultimate\">Popular Things You Can Build with Shortcodes Ultimate<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accordions-and-faq-sections\">Accordions and FAQ sections<\/h3>\n\n\n\n<p>Use expandable sections to make long content easier to scan.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_spoiler title=\"Can I use shortcodes in widgets?\"]\nYes, you can use shortcodes in supported widget areas.\n&#091;\/su_spoiler]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"buttons-and-calls-to-action\">Buttons and calls to action<\/h3>\n\n\n\n<p>Add buttons without writing CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"\/download\"]Download Now&#091;\/su_button]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"tabs\">Tabs<\/h3>\n\n\n\n<p>Organize long content into compact sections.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_tabs]\n  &#091;su_tab title=\"Features\"]Feature list&#091;\/su_tab]\n  &#091;su_tab title=\"FAQ\"]FAQ content&#091;\/su_tab]\n&#091;\/su_tabs]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"boxes-and-notes\">Boxes and notes<\/h3>\n\n\n\n<p>Highlight important messages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_note]This is an important note for readers.&#091;\/su_note]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"responsive-media-and-galleries\">Responsive media and galleries<\/h3>\n\n\n\n<p>Insert media-focused elements without building everything from scratch.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-install-shortcodes-ultimate-for-free\">How to Install Shortcodes Ultimate for Free<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your WordPress dashboard.<\/li>\n\n\n\n<li>Go to <strong>Plugins \u2192 Add New<\/strong>.<\/li>\n\n\n\n<li>Search for <strong>Shortcodes Ultimate<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Install Now<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Activate<\/strong>.<\/li>\n\n\n\n<li>Open a page or post and start inserting shortcodes.<\/li>\n<\/ol>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Install Shortcodes Ultimate Free from WordPress.org<\/a><\/strong><\/p>\n\n\n\n<p>No coding required for common content elements.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"troubleshooting-why-is-my-wordpress-shortcode-not-working\">Troubleshooting: Why Is My WordPress Shortcode Not Working?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-shortcode-appears-as-plain-text\">The shortcode appears as plain text<\/h3>\n\n\n\n<p>This usually means WordPress is not processing shortcodes in that location. Try using a Shortcode block or placing the shortcode inside the main page\/post content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-plugin-that-provides-the-shortcode-is-inactive\">The plugin that provides the shortcode is inactive<\/h3>\n\n\n\n<p>If a plugin is disabled, WordPress may show the shortcode text instead of the output. Make sure the plugin that created the shortcode is installed and active.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-shortcode-syntax-is-incorrect\">The shortcode syntax is incorrect<\/h3>\n\n\n\n<p>Check for missing brackets, misspelled attributes or missing closing tags.<\/p>\n\n\n\n<p>Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"\/contact\"Contact&#091;\/su_button]<\/code><\/pre>\n\n\n\n<p>Correct:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;su_button url=\"\/contact\"]Contact&#091;\/su_button]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"you-pasted-php-into-the-editor\">You pasted PHP into the editor<\/h3>\n\n\n\n<p>Do not paste this into the WordPress editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php echo do_shortcode('&#091;your_shortcode]'); ?&gt;<\/code><\/pre>\n\n\n\n<p>Use PHP only in theme or plugin files. In the editor, paste only the shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;your_shortcode]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-shortcode-depends-on-scripts-or-styles\">The shortcode depends on scripts or styles<\/h3>\n\n\n\n<p>Some shortcode outputs require CSS or JavaScript. If the output looks broken, check plugin settings, theme compatibility and whether scripts are loading correctly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"best-practices-for-using-shortcodes-in-wordpress\">Best Practices for Using Shortcodes in WordPress<\/h2>\n\n\n\n<p>Use shortcodes for reusable, structured content elements, but keep your pages clean and maintainable.<\/p>\n\n\n\n<p>Recommended practices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use shortcodes from trusted plugins.<\/li>\n\n\n\n<li>Keep shortcode syntax readable.<\/li>\n\n\n\n<li>Avoid placing too many complex shortcodes inside one page.<\/li>\n\n\n\n<li>Test shortcodes after changing themes or disabling plugins.<\/li>\n\n\n\n<li>Use child themes when editing template files.<\/li>\n\n\n\n<li>Avoid processing shortcode content from untrusted users.<\/li>\n\n\n\n<li>Document custom shortcodes used in templates.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"start-using-wordpress-shortcodes-today\">Start Using WordPress Shortcodes Today<\/h2>\n\n\n\n<p>Shortcodes are one of the easiest ways to add reusable content elements to WordPress. You can paste them into pages, posts, widgets and supported page builders, or output them in theme files with PHP.<\/p>\n\n\n\n<p>If you want to create buttons, tabs, accordions, boxes, spoilers, columns, sliders, media elements and other content blocks faster, install <strong>Shortcodes Ultimate<\/strong> and use its visual shortcode generator instead of writing shortcode syntax by hand.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-ultimate\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Install Shortcodes Ultimate for Free<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"frequently-asked-questions\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-do-i-use-a-shortcode-in-wordpress\">How do I use a shortcode in WordPress?<\/h3>\n\n\n\n<p>Add a Shortcode block in the WordPress editor, paste the shortcode into the block, then preview or publish the page. In the Classic Editor, you can usually paste the shortcode directly into the content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-use-shortcodes-in-the-wordpress-block-editor\">Can I use shortcodes in the WordPress Block Editor?<\/h3>\n\n\n\n<p>Yes. WordPress includes a Shortcode block. Add the block, paste the shortcode and view the page on the front end to see the rendered result.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-use-shortcodes-in-wordpress-widgets\">Can I use shortcodes in WordPress widgets?<\/h3>\n\n\n\n<p>Yes, in supported widget areas. Go to <strong>Appearance \u2192 Widgets<\/strong>, add a Shortcode block, paste your shortcode and save. If it appears as plain text, that widget area may not be processing shortcodes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-do-i-use-a-shortcode-in-a-wordpress-theme-file\">How do I use a shortcode in a WordPress theme file?<\/h3>\n\n\n\n<p>Use the <code>do_shortcode()<\/code> function in a PHP template file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php echo do_shortcode('&#091;your_shortcode]'); ?&gt;<\/code><\/pre>\n\n\n\n<p>Only use this with shortcode strings you control.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-the-easiest-way-to-add-shortcodes-in-wordpress\">What is the easiest way to add shortcodes in WordPress?<\/h3>\n\n\n\n<p>The easiest manual way is the Shortcode block. The easiest plugin-assisted way is to use Shortcodes Ultimate, choose a shortcode visually, configure it, preview it and insert the generated shortcode.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"is-shortcodes-ultimate-free\">Is Shortcodes Ultimate free?<\/h3>\n\n\n\n<p>Yes. The free version of Shortcodes Ultimate is available from the WordPress.org plugin repository.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"do-shortcodes-work-if-i-change-my-theme\">Do shortcodes work if I change my theme?<\/h3>\n\n\n\n<p>Usually, plugin shortcodes continue to work if the plugin remains active. However, styling may change because the new theme can affect spacing, typography and CSS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-is-my-shortcode-showing-as-text\">Why is my shortcode showing as text?<\/h3>\n\n\n\n<p>The shortcode may be in an area that does not process shortcodes, the shortcode provider plugin may be inactive, or the shortcode syntax may be incorrect.<\/p>\n","protected":false},"featured_media":0,"template":"","docs_category":[20],"class_list":["post-44121","docs","type-docs","status-publish","hentry","docs_category-getting-started"],"acf":[],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/44121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=44121"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=44121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}