• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Blocks / Shortcode – core/shortcode
Insert additional custom elements with a WordPress shortcode.

Use the Shortcode block to write shortcodes which produce blocks.

Screenshot

Example

This shortcode displays the current version of WordPress and PHP being run on the server.

[wp v p]

WordPress 5.7.1. PHP: 7.3.27


Notes

  • Suitable for shortcodes which produce blocks.
  • Do not use for inline shortcodes.
  • May fail to cater for new lines in block content.
  • The shortcodes are not rendered in the editor but are invoked when the post is viewed.
  • Shortcode blocks are almost impossible to use in columns.
There’s an issue for this problem.

Published: 24th January 2019 | Last updated: 16th March 2019

Information

Block type name: core/shortcode
Variation name:
Documentation:
Plugin ref: WordPress
Block categories: widgets
Block keywords:
Block classification: Dynamic
Block letters: S

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites