Описание тега shortcode

A shortcode allows Wordpress plugin authors to offer hooks for their functionality into templates in a concise manner. Introduced in version 2.5, the shortcode is a definition of an object which accepts optional properties. Use this tag if you are implementing a shortcode and need help with the underlying functionality.

A shortcode allows Wordpress plugin developers to offer hooks for their functionality into templates in a concise manner. Introduced in version 2.5, the shortcode is a definition of an object which accepts optional properties.

Example:

[mygallery src = "photos/"]

can be used to include a custom photo gallery from pictures in the photos directory as compared to

myGallery('photos/');

Use this tag if you are implementing a shortcode and need help with the underlying functionality.

The Wordpress Shortcode API offers a quick guide to setting up a simple shortcode handler and explains how this should be handled on the backend.