WP_BoilerPlate
WP_BoilerPlateShow appreciation for WP_BoilerPlate
- Rate it on WordPress.org
- Tell you friends.
- Help support its development
WP_BoilerPlate is a free WordPress plug-in that allows you to add frequently used sentences, phrases or paragraphs into your posts or pages easily with inclusion of one simple tag. The “boilerplate” text is stored as a page in your blog, and is inserted into the post or page on display, giving you ability to change blocks of text in all your posts easily. WP_BoilerPlate has the ability to do a search and replace on the “boilerplate” text before it is inserted, giving you the ability to make things a little more specific. WP_BoilerPlate can be used recursively.
Installing WP_BoilerPlate
- download WP_BoilerPlate.
- Copy to your ‘wp-content/plugins‘ directory.
- Log in with an administration account.
- Select the ‘Plugins‘ tab.
- Scroll down to ‘WP_BoilerPlate’ and click ‘activate‘.
Usage
To use WP_BoilerPlate insert the following BBCode shortcode into your post where you would like the “boilerplate” text to appear, or the PHP into your template where you would like the “boilerplate” text to appear.
[boilerplate post = "post" text1 = "text"]
<?PHP do_action('boilerplate','post = "post" text1 = "text"');?>
The Attributes
- post
- Purpose: The page to use as the “boilerplate” text.
- text1
- Purpose: This is an optional attribute, you can also have as many of this attribute as you require. It tells WP_BoilerPlate what text is to be replace in the “boilerplate” text before it is inserted into you post or page. In the example replace {text} with the text to be replaced. {text} should only be one word and it is recommended that it you make it unique.
The following filters will be automatically replaced in the text.
- @@post_rsstitle@@
- @@post_author@@
- @@post_author_description@@
- @@post_author_email@@
- @@post_author_firstname@@
- @@post_author_lastname@@
- @@post_author_nickname@@
- @@post_author_url@@
- @@post_url@@
- @@post_date@@
- @@post_time@@
- @@post_title@@
- @@blog_url@@
- @@blog_name@@
- @@blog_desc@@
- @@blog_home@@.
Version History
- 1.0.0
- Initial public release.
- 2.0.0
- Added search and replace support
- 2.0.1
- Solved problem with case sensitive file names.
- 3.0.0
- 3.1.0
- Reapplied filters to allow recursion and better filtering
- 3.1.1
- Removed filters on nested text due to problems with footers being applied to the text
- Added new technique for doing recursion
- 3.1.2
- Replaced missing update routine.
- 3.2.0
- Added an action interface to allow use in templates
- 3.3.0
- Updated Libraries
If you liked this plug-in visits our download area where you will find many more.
If you have questions, have found any bugs, or you would like to see features added to WP_BoilerPlate please feel free to use the form at the bottom of the page to Contact us. If WP_BoilerPlate doesn’t fill your needs , feel free to Contact us to discuss a specially commissioned plug-in.
If you liked WP_BoilerPlate please:
- Tell you friends.
- Write a review and tell your subscribers.
- Rate WP_BoilerPlate on WordPress.org
You can also make a donation to Help support its development.
I am finding it difficult to use this plugin. Can you simplify the usage steps and post it here?
Where can I find the postname? I checked Manage section but there is no column named postname.
The post name is the just the title, internally its referred to as the post name. I’ll change to documentation to reflect this.
I created a private post with the title Boiler and added few information. I then edited a published post and added the following HTML using code editor
The boiler plate content is not shown inside the post when I viewed it.
Please let me know if this is the correct format.
Waiting for your reply.
Unfortunately it would appear that t the tag has been removed from the comment. If you post it again substitute [] or the <>.
Your instructions appear to be rather cryptic!
Insert [!–boilerplate post=”{postname}” {text} = “{new text}”–]
Assume I name my post “boilerplate”. Assume somehow that I have cut and paste some text into “new text” which I want to duplicate. I’ve named “text” “bp_start”. How do I select the text to duplicate in another post?
Is the “new text” placed in the new post when I enter [!-boilerplate post="boilerplate" bp_start -]
Hope you can understand my question as I’m sure you know your plugin - just that the instructions to use it are currently inadequate. Please take this on board as a constructive critique.
Regards
Gary O
Gary O: Thanks for the comments, taken on board as meant. I often find it hard to write simple instructions to something I’ve spent so much time with.
In answer to your questions.
boilerplate is the name of the tag used to identify the tag to be replaced, and has no affect on the text being inserted.
Your post can be called anything.
You indicate what post you want to insert with the
post = “[postname}”
where {postname} is the name of the post you want to insert. This means you can choose different posts buy changing the postname.
The text IS inserted where you insert the tag.
The bp_start that you have in your tag will not do anything.
The other optional attributes in the tag are text that will be replaced in the post you are inserting.
so:
word1 = “this is a text”
will replace all occurrences of word1 with this is a test before inserting the text. You can have as many of these attribute as you like, not just one as shown in the example.
I hope this has answered you questions. I will be rewriting the instructions soon, thanks to you questions.