Include Content By Shortcode
This plugin enables users to add the same content to multiple posts and pages using a shortcode. It functions similarly to PHP’s ‘include’ function. Users can include HTML, CSS, and JavaScript in their content with a simple shortcode. For example, if my brand’s tagline, “The Best Of Its Kind,” needs
This plugin enables users to add the same content to multiple posts and pages using a shortcode. It functions similarly to PHP’s ‘include’ function.
Users can include HTML, CSS, and JavaScript in their content with a simple shortcode. For example, if my brand’s tagline, “The Best Of Its Kind,” needs to be displayed on various pages and posts, I would add it to the Included Content section. The plugin will generate a shortcode for this content, which I can then place wherever I want the tagline to appear.
Additionally, CSS and JavaScript can be added alongside the HTML content, ensuring they are included wherever the shortcode is used.
In the future, if I change my tagline, I only need to update it in the Included Content section, and it will be updated everywhere the shortcode has been used.
Screenshots & previews.
- 01Upload “include-content-by-shortcode” to the “/wp-content/plugins/” directory.
- 02Activate the plugin through the “Plugins” menu in WordPress.
Frequently asked questions.
What will be the shortcode?
The default shortcode for this plugin is [includedcontentbyshortcode id=9999], where 9999 represents the unique ID of the Included Content. This ID is automatically generated when you create the content in the Included Contents section. You can simply copy the shortcode from the Included Contents page and paste it wherever you want the content to appear on your posts or pages. The ID in the shortcode will correspond to the specific piece of content you want to include.