Find a bug?
If you believe you have found a bug, please open a ticket here. This will allow me to track the issue as a single issue and others to comment and give feedback.
I’m finding it difficult to discern user error from bug from configuration differences among different installations. All of this will lead to a quicker turn around for reported issues. Isn’t that cool?
Official Wordpress Link
UPGRADERS, please read the updated installation instructions. There have been some important changes since the first release. (they’re good ones)
Many bloggers use a similar format for many or all of their posts. WordPress provides no native way to pre-fill your new posts with such a template. This plugin provides the simplest solution to this problem. It takes 5 minutes to install and setup. The template allows you to define a title and a body and support HTML and even PHP. There’s no easier solution.
Version History
Version 1.0.0.1:
- Fixed security issue. Now only administrators can access admin pages.
Version 1.0:
- Moved *all* settings to administration pages under Settings -> Simple Post Template.
- Moved content of template and title to WordPress options.
- Provided upgrade mechanism to convert old templates to the new format. (May not work for all applications. Some may work but may be more complex than necessary.)
- Added optional “Insert Template” button to new post page. You can now determine from the settings page whether or not the template will be automatically applied to all new posts.
- Plugin is now upgrade proof. Settings are stored using Wordpress’s setting functions.
- Various other improvements were made to address inefficiencies in the first version.
- Original release.

New administration panel.

New button (only appears when auto fill is deselected in admin panel)
Installation
- Upload the directory “simple-post-template” to the `/wp-content/plugins/` directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings -> Simple Post Template and enter your desired title and body for new posts. (Feel free to use any combination of HTML and PHP.)
- If you select “Auto fill new posts with this template.” all new posts will be created with your template. If you uncheck this, the new posts screen will have a new sidebar widget with a button allowing you to apply the template.
- There’s nothing else to do. Enjoy! (unless you are upgrading, in which case, see below)
ATTENTION UPGRADERS FROM VERSION 0.1, READ THIS:
If you use automatic upgrade from the WordPress plugin screen, WordPress will most likely delete your current templates. Period. I didn’t realize this until after I wrote and uploaded these instructions. If you wish to use the described upgrade feature (that I apparently spent way too much time on!) simply copy your template.php and title.php files to another location before upgrading automatically, OR upgrade the old fashioned way.
Version 1.0 provides vast improvements to the way templates are stored and executed. Consequently, I no longer use template.php and title.php to create templates. The template is now stored in the WordPress database and PHP is processed at runtime using eval(). To assist users of old version, the admin screen provides an Upgrade button for those who still have the old flat files. The upgrade tasks is not fool proof. The original templates were stored in a string in two flat files. I have attempted to copy over that string and encapsulate it in a PHP echo which should keep most HTML and PHP working well. However, the result is likely to be more complicated than necessary…
For example, if you original template had this:
$template = “Hi this is some text and whoops!”.$some_php_variable.” What was that??”;
Than your new template will look something like:
<?PHP echo “Hi this is some text and whoops!”.$some_php_variable.” What was that??”; ?>
Quite obviously, this can be done different/better with the new system:
Hi this is some text and whoops! <?PHP echo $some_php_variable; ?> What was that??
The latter example is obviously much better and will make templates *much* easier to do for first time users. This should be the last time I make large changes to the way templates are done. Because of this, I’m comfortable releasing it at version 1.0 instead of 0.2 or some derivative.
So, once again, the upgrade mechanism is provided as a curteousy. I’ve tried to make it as easy as possible to upgrade, but I encourage to fine tune the result of this upgrade and make it your own.
Frequently Asked Questions
Why not store the title/template in the database?
This was addressed in version 1.0.Will you be adding a way to modify the templates from the administration panels?
This was also fixed in version 1.0.- Can feature x be added?
Probably! E-mail me: webmaster[at]clifgriffin.com
Download it now…
Simple Post Template 1.0.0.1 for Wordpress 2.7.1

#1 by Shanna at October 28th, 2008
clifton all this interwebs stuff is confusing. please post something interesting
#2 by clifgriffin at October 28th, 2008
Don’t hate!
#3 by dlv at October 30th, 2008
it’s nice, thanks for work on things like this..it’s hard to do a plugin
good bye
adeux
#4 by clifgriffin at October 31st, 2008
You’re welcome. Glad you like it!
#5 by Pablo DiCiacco at November 13th, 2008
There needs to be a standard adopted for all WP plugin offerings. That standard should be all plugins should be required to show working examples of the plugin on the developer site. Included should be what version of WP is being used on the site.
Also, please urge WP to rework the search function on their extend page. The search as it functions now is completely useless.
I will not download, or recommend your plugin because you cannot show working examples.
#6 by clifgriffin at November 14th, 2008
Pablo,
Your concerns would be much better directed at Wordpress.
This plugin works entirely within the administrative portion of Wordpress. It also requires you to have FTP access in its current form.
I’m not going to setup either of those simply to satisfy one person that this plugin is legit.
If you can’t take my word (and the word of others who have tried the plugin), I guess just don’t use it?
Clif
#7 by audiostein at November 24th, 2008
Thanks! Just what i needed.
#8 by Raju at November 26th, 2008
I had to read the post thrice to understand the feature:0 But I did manage to understand the third time, so not too bad eh?!
One typo in Installation instruction I guess – “Upload the directory “Simple-LDAP-Login” to the `/wp-content/plugins/` directory”
Why Simple-LDAP-Login?
#9 by clifgriffin at November 26th, 2008
Ugghhhhh. I copied pasted from another plugin to save time and forgot to change that reference. It should be simple-post-template.
Sorry!
#10 by Raju at November 27th, 2008
happens
Subscribed!
looking forward for more useful stuff from you
#11 by Ron Jones at December 17th, 2008
Thanks very much!
This is a helpful little plugin that just fits what I needed. I’m using a tracking program called Xtreme Conversions, that requires a string of php code at the top of each post.
Worked like a charm once I figured out how to escape all the dollar signs
I’d like to tweak it to work on pages as well. and (since I’m being lazy) it might be helpful to choose to add the code to a post/page by pressing a button in the editor (as opposed to it appearing by default).
Nonetheless, I do appreciate it.
Ron Jones
Mt. Juliet, TN
#12 by clifgriffin at December 17th, 2008
Thanks for the suggestions, those are definite possibilities. I’m unconvinced my template files are the best approach so I plan on doing some revisions eventually.
#13 by rohin at April 16th, 2009
is it possible to pre-fill custom fields as well ?
#14 by rohin at May 7th, 2009
still waiting on that answer about custom-feilds cliff !
#15 by clifgriffin at May 7th, 2009
Hey, sorry! I missed this somehow.
It isn’t possible in the existing version, but I’ll investigate it for future versions. (No specific timeline right now for the next release…just depends on what features I come up with and how long they take to implement and how much time I can dedicate to the project.)
How important is this for your usage? What is the application you have in mind?
#16 by Rohin at June 3rd, 2009
If you added this , You would save me about 15-20 minutes a day.
I post things in batches and manually having to customize the custom fields really sucks hah.
(Take a look at my site you’ll see what I’m talking about when you see the front page , Each pic is a custom feild)
#17 by Fieke Bazelmans at June 16th, 2009
Hi,
is it possible to create more than 1 Post Template? I actually need two…one for the agenda of our meetings and one for the notes of those meetings.
Thanks!
Fieke
#18 by Clifton Griffin at June 16th, 2009
Not in the current version, sorry.
#19 by Ellery at July 21st, 2009
What if I want to add some text in anyplace inside the post? Like what Adsense Now does?
#20 by knockoff designer bags at August 1st, 2009
Best link for you – replica designer purses
#21 by Selvam at August 5th, 2009
Its really cool wordpress plugin and avoid lot of code updates in post templates. Great work. keep it up.
#22 by Shannon at August 10th, 2009
Is it possible to add an option through which you could choose a template to be used by a specific user? I would like to create multiple Simple Post Templates so that one user’s template is different from another’s.
#23 by lawvol at November 19th, 2009
I agree with Shannon. This plugin has the best interface and function of any of the template plugins I’ve seen. If it ONLY had the ability to support multiple templates I would deploy it in a minute (I am needing it to help provide templates to my multiple authors who aren’t HTML saavy).
If it could do that, it would be awesome…
#24 by Clifton Griffin at November 19th, 2009
Hi Lawvol,
It seems I missed Shannon’s comment before.
Can you describe how you would like this to work from an administration/practical standpoint?
ie, how would you like to manage these multiple templates?
#25 by lawvol at November 19th, 2009
Well, I guess I would convert the button on the Edit Post screen into a dropdown menu to allow selection of templates.
Then I suppose you could add a “manage template” admin screen which allows you to see and edit the templates available.
Here is a link to some screenshots from another template plugin which sort of represent what I was thinking: WP Plugins: Post Templates > Screenshots
I suppose the biggest thing is just to permit the creation of multiple templates, and the ability to select those templates from within the edit post window.
Thanks for making this available!
#26 by Nicole at August 17th, 2009
Thanks for this plugin.
I added the text that I want in the template but I could not work out how to edit it all all.
For e.g. I would like to change the size and color of the headings. Is this possible?
Thanks again!
Nicole
#27 by aos at August 18th, 2009
I love this plugin a LOT. I’ve been copy-pasting the same info for countless posts, now I finally have it set in stone on my posts.
Do you think something like this is possible for post excerpts too?
I’d do anything for a script like that. Just wondering haha
Great job on this script. I really appreciate it!
#28 by Gary at October 2nd, 2009
Love what this plugin can do, but having a difficult time passing php code from template to new post. This:
[wp_cart: ?php the_title();? :price:?php the_excerpt(); ?:end]
becomes this:
[wp_cart::price::end]
(left out the around the php for this comment or it wouldn’t show up).
Is this expected behavior? Or should I be able to set up php in the template and pass to the posts? Thx.
#29 by Gary at October 2nd, 2009
PS: I forgot to mention I have the plugin that allows PHP in posts.
#30 by Clifton Griffin at October 3rd, 2009
Hi Gary, I thought I posted this yesterday but something must have gone wrong. Here is my response:
Using php in a post might complicate things. The magic of my plugin lies in this line of code:
eval(‘?>’.stripslashes(get_option(“spt_template”)));
I execute any php in the template before I place it in the new post. To circumvent this, I imagine you need to escape any php you put in using whatever escape sequences you would need to put php in a php string.
I think this may result in just the text of your php in the template on execute which should allow your other plugin to process it.
I haven’t tested it but I think it should be possible.
Let me know if you have problems.
#31 by web hosting at October 21st, 2009
Hey, you must see it – VDS hosting
#32 by порно ролики at November 15th, 2009
Текст реально порадовал. Автору респект. В поддержку темы тоже делюсь тем, что близко мне – http://www.порно-онлайн.su, Заходите – не пожалеете
#33 by Richard at December 2nd, 2009
Hi. Thanks for the great plugin. Like others who have commented, it could save me a lot of time. Unfortunately, it seems to be incompatible with Advanced Excerpt, using WP 2.8.6. When I had both installed, Advanced Excerpt would not display the excerpt for any post that was made using the Simple Post Template. Sadly, I had to choose one of these plugins, and I really need custom excerpts. Sniff, sniff.
#34 by Suzanne at December 10th, 2009
Hey Clifton thanks for this handy plug-in. I installed it on my sister’s business site but I wanted to ask about an odd behavior I noticed.
The excerpt entry field is being auto-populated by four spaces when you save your settings. Upon subsequent saves, it adds a space to the four that were save the first time. Every time you save your settings, it adds another space.
I didn’t notice this at all until I was investigating why posts to Facebook were showing no description text. Facebook pulls first from the meta description if there is one and when I looked at the HTML for the pages of the site, the meta descriptions were full of spaces :-O
I tracked it back to the fact that Simple Post Template was inserting those spaces into the excerpt which some themes use to populate the meta descriptions.
Wasn’t sure if this was formally a bug so I figured I’d post the note here first.
Cheers.
#35 by Irwin at December 19th, 2009
Great plug in.
Is it possible to add multiple post templates?
Thanks in advance.
is
#36 by Zach Lym at January 17th, 2010
I am seconding the multiple templates option!
Thanks,
-Zach
#37 by Mouad at January 25th, 2010
Thanx for the nice plugin, but it sadly doesnt support Arabic. Saving the template went ok, but when inserting it by hitting the “insert” button, it pastes a mixture of ambigious sumbols, not Arabic.
Meanwhile, I created a TEMPLATE draft post that I will simply enter and copy its content to the new post.. this is even simpler than using the plugin
but thanx in any case..
#38 by Justin Lewis at January 29th, 2010
Excellent plugin! I also think multiple templates would be a nice option.