Reusable Text Blocks

Create reusable pieces of content that you can insert into themes, posts, pages & widgets.

Author:Hal Gatewood (profile at wordpress.org)
WordPress version required:3.5
WordPress version tested:5.7.2
Plugin version:1.5.3
Added to WordPress repository:19-12-2012
Last updated:30-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:98
Rated by:36
Plugin URI:http://halgatewood.com/text-blocks
Total downloads:66 015
Active installs:9 000+
plugin download
Click to start download

This plugin creates a new ‘text-blocks’ custom post type with it’s own section in the WordPress admin sidebar. It uses the standard WordPress user interface so you and your clients will know how to use it instantly.

New in Version 1.5: Variables! You can add {{player}} to your text block content and then pass in ‘player’ to the shortcode: [text-blocks id=”1″ player=”Hal Gatewood”]

You can add it to your site in three ways:

1. Widget

The included widget allows you to specify which block you want to insert. You can also include a title if needed.

2. Widget

[text-blocks id="1"] or [text-blocks id="text_block_slug"]

3. PHP Function

A PHP function has been setup so you do not have to use the do_shortcode function.

<?php if(function_exists('show_text_block')) { echo show_text_block(421); } ?>
<?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?>