WordPress Administration Plugin - Article Templates

Article Templates wordpress plugin lets you create templates that can be used when writing a new post or page. This will be very useful if you are writing many post with the same structure.

Download

Article Templates (Latest)

Installation

How to Use

Go to the Templates Management page(Manage > Manage Templates). All the templates you have created will be shown there. You will have the option to create, edit and delete templates in this page.

All templates you have created will be shown in a dropdown in the Post pages. When creating a new post, you can chose a template from the dropdown menu and it will be inserted into the editor automatically.

Screenshot of Article Templates WordPress Plugin

If a template is set as default, that will be inserted into the editor whenever you write a new post.

Please note that the templates can only be used by the user who created the template. This feature might be removed in the future versions.

Similar Plugins

Comments

Lee at 19 Jan, 2008 02:34
I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/website/public_html/wp-admin/admin-header.php:16) in /home/website/public_html/wp-includes/pluggable.php on line 391

It still makes the template but I thought you should know.
Reply to this.
Christian Wilke-Zhang at 22 Jan, 2008 03:04
I have installed your plugin but it shows the following ERROR:

Warning: Cannot modify header information - headers already sent by (output started at public_html/wp-admin/admin-header.php:16) in public_html/wp-includes/pluggable.php on line 391

What does this mean?

Do you have a solution?

Christian

Reply to this.
Binny V A at 22 Jan, 2008 09:41
I am looking into this. Where do you see this error? What were you doing that might have caused it? What version of WordPress are you using?
Reply to this.
Herrin Larkan at 02 Feb, 2008 05:53
Truly a fantastic plugin and one of the most practical ideas for a plugin out there. I know its still in Beta but I'm getting an error message too. Also when I go to inset the template before I write a post it is not remembering the formatting. i.e. Four words that were originally on a new line will be in a row like so: Word 1: Word 2: etc Anyways Here is the error message and also my system info below.

Please let me know when this plugin is updated, I am excited about the possibilities!

Warning: Cannot modify header information - headers already sent by (output started at /home/bdrecord/public_html/effectiveclassywebsites/testsite/wp-admin/admin-header.php:16) in /home/bdrecord/public_html/effectiveclassywebsites/testsite/wp-includes/pluggable.php on line 391

Here is my system information.


WordPress-Version : 2.3.2
WordPress-Db-Version : 6124
Role-Manager-Version : 02.02.01 (131585)
PHP-Version : 5.2.4

preg_replace : yes


Reply to this.
Dupe at 25 Jan, 2008 03:16
The same error in 2.3.2
Reply to this.
Anonymous at 25 Jan, 2008 02:31
I just got this error after activating it and trying to open the manage template section.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/yourh11/public_html/wp-content/plugins/article-templates/manage.php on line 34

Is this my error or in the scripting or whatever?
Reply to this.
Binny V A at 25 Jan, 2008 08:38
That is because you are using PHP 4 on the server and the plugin is targeted at PHP 5.
Reply to this.
Anonymous at 26 Jan, 2008 12:35
So, I'm a rookie, is there something simple I can do to to fix it? Is it the version of WP? I think it's like 2.2. I'm using Lunarpages, is the php4 thing something they do? Thanks
Reply to this.
Binny V A at 27 Jan, 2008 07:46
Could you send me an email? Or put you email here(I will recommend against it). I will send the fixed file to your address. My email is binnyva, gmail.
Reply to this.
Lisa Hartjes at 06 Feb, 2008 05:58
I'm getting the following error message:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /wp-content/plugins/article-templates/manage.php on line 34

Is this because the plug-in is aimed at PHP5?
Reply to this.
Binny V A at 07 Feb, 2008 12:35
Unfortunately, that is true - but it will be fixed in the next version.
Reply to this.
Anonymous at 20 Feb, 2008 02:03
works smooth for me. the only qualm I have is the "the templates can only be used by the user who created the template". any find a way around this? I set up a wordpress for this work blog...roughly 35 users who all need the same template and I really don't want to load the template for all of them manually.

any ideas?

thanks,
-j
Reply to this.
Binny V A at 20 Feb, 2008 07:13
I am looking into this - I'll let you know when I have something.
Reply to this.
Anonymous at 22 Feb, 2008 09:06
Received the following message after activating the plugin

Cannot load article-templates/manage.php.
Reply to this.
Craig at 29 Feb, 2008 01:24
Firstly, thanks for developing such a too. Is there any way to make templates designed by admin available for others - such as contributors - just realised that my question is very similar to Anon of 20 Feb. But I will leave my request to indicate the popularity.

Craig
Reply to this.
Diego at 29 Mar, 2008 12:18
This plugin can be used on Wordpress MU ?
I was install it, but i wasn't see it on menu.

Tks
Reply to this.
Binny V A at 30 Mar, 2008 07:53
Wordpress MU?
I am not sure what you mean.
Reply to this.
sirholio at 30 Mar, 2008 01:41
wordpress MU is wordpress, but built for a multiple blog site. mu.wordpress.org/
I believe it handles plugins in a slightly different manner.
Reply to this.
Chris at 30 Mar, 2008 10:32
Hello, I installed the newer version of this plugin, it works great ..all except for one little thing. I created a new template and added the html and such and saved it, but when I click on new post...the html does not follow to the posting template, I double checked and clicked on edit for the template and the html is still there. any ideas?

Working with Wordpress 2.5 (Just updated wordpress)
Reply to this.
Binny V A at 01 Apr, 2008 12:31
I just updated the plugin - get the latest version at the WordPress site
Reply to this.
Kim at 04 Apr, 2008 05:37
I've just downloaded the latest version of the plugin from the WordPress site, and wanted to let you know that it works perfectly for me in WP2.5.

The only problem that I saw was that it inserts the option to choose the template below the Categories box just before Advanced Options, and it is difficult to find. I made some changes to your code to incorporate the same style box that all of the other options use (div id="postbox") and now it fits in seamlessly with all the other options on the page.

If you would like, I can zip up the changed files and send them to you.
Reply to this.
Kim at 04 Apr, 2008 06:39
I did find one issue when using the code editor rather than the visual editor.

When writing a new post, I choose the article template, and the code is inserted into the post textarea with the proper linebreaks between the lines of code (see below).

Question:



Insert question here



Answer:



Insert answer here



However, when I go to the Manage Templates tab and select "New post" next to one of the templates, the code that is inserted into the post textarea box all runs together and has the linebreak tags inserted (see below).

Question:



Insert question here



Answer:



Insert answer here



In looking at your code, you are using javascript to insert the template content in templates.php, which inserts the code correctly. In manage.php, you are not using that same javascript, so the html code is all running together.

Any ideas on what I can do to fix this issue?

Thanks in advance!
Reply to this.
Kim at 04 Apr, 2008 06:43
I used the code tags in the post above but it didn't get formatted properly - sorry!
Reply to this.
Anonymous at 11 Apr, 2008 04:42
I installed the plugin on a wordpress 2.5 site. I get the "manage plugins" option in the admin interface, but there's no buttons to create or modify any templates. What do I need to do to see these options?
Reply to this.
Binny V A at 13 Apr, 2008 10:05
I just made an update - 1.04.0 - install that update. Get it from wordpress.org.
Reply to this.
Dario at 22 Apr, 2008 04:56
Same problem. Version 1.04.0 don't shows buttons in WP 2.5. How I can fix this? Thanks.
Reply to this.
Anne at 27 Apr, 2008 12:54
Yes, I agree with Dario above. I figured it is because of this code: <?=__("Create New Template")?>
Reply to this.
Duplicate Files at 22 Apr, 2008 10:16
This plugin can be used on Wordpress MU ?
I was install it, but i wasn't see it on menu.
Reply to this.
Kim at 02 May, 2008 08:49
@Anonymous, Dario, and Anne -
I have the latest version of this plugin (1.04.0) installed on my WP 2.5.1 install, and it works just fine.

Make sure you have the latest version of this plugin. Once you have installed and activated it, navigate to the Manage tab in your WP admin, then look for a link called "Manage Templates". Click that and you should see a link on that page called "Create New Template" - click that link, fill in template title and the information you want to include on that article template, then click Save. It will take you back to the Manage Templates page where you should see your new template listed.
Reply to this.
Anonymous at 06 May, 2008 01:13
Hi

The Plugin works great.

When using in conjunction with Wordpress Admin Bar I had problems with the Admin Bar picking up the wrong link info so I had to modify this plugin as follows and all works fine. Not sure if I missed something and changed this when I didn't need to?


----- CODE ------

add_action( 'admin_menu', 'templates_add_menu_links' );

function templates_add_menu_links() {

$view_level= 2;

add_submenu_page( 'edit.php', __('Manage Templates'),

__('Manage Templates'), $view_level, // Modified by Chris Pike to make compatible with WP Admin Bar under WP2.5.1 (Manage/Managed Templates had the wrong link in) - 6th May 2008

'article-templates/manage.php' );

}



Reply to this.
Binny V A at 06 May, 2008 07:50
I use Wordpress Admin Bar - it works perfectly with Article Templates for me.
Reply to this.
Anonymous at 07 May, 2008 02:31
Interesting, I'll do a new install at the weekend. Are you using WP2.5.1?
Reply to this.
baron at 10 May, 2008 03:16
hi. Thanks for plugin

perfect.

regards
Reply to this.
Anonymous at 21 May, 2008 03:10
THANK YOU
Reply to this.
Marco at 21 May, 2008 03:29
doesnt work using FF 3.0RC1 and IE 6 (because it is blocked). Installation successfull, template creating OK, but then no way to insert. Clicking the drop down menu and chosing the template doesn't do anything... :(
Reply to this.
Marco at 21 May, 2008 03:34
Update: I'm using latest WP version

>> you can chose a template from the dropdown menu and it will be
>> inserted into the editor automatically.

No. No insert is done.
Reply to this.
Marco at 21 May, 2008 03:35
Update: I'm using latest WP version.

>> you can chose a template from the dropdown menu and it
>> will be inserted into the editor automatically.

No. Nothing happens. No automatic insert.
Reply to this.
Binny V A at 05 Jun, 2008 10:59
Is javascript turned on?
Reply to this.
jocuri at 28 May, 2008 01:00
Thanks, great job ! regards
Reply to this.
Chris at 29 May, 2008 07:46
Can you have it erase the previous template?

I think a great feature would be to override the category template.
Reply to this.
Anonymous at 30 May, 2008 03:45
Hi! Does the template allow me to pre-determine a category and subject, or does it only populate the form's textarea?
Reply to this.
Anonymous at 02 Jun, 2008 09:01
Thanks for plugin

I change your code php
[code]
<?=

//to

<?php echo

[/code]
Reply to this.
Lilly Mouse at 05 Jun, 2008 08:04
Hi,

Great plugin, and exactly what I was looking for.

I installed without a prob, got a template going witout prob. BUT... I have a really strange string attached only admin view of my blog.

So it's not showing to visitors but is distracting to work with this at the bottom of all post editing pages:

\n\n \n \n \n\n \n \n \n \n \n\n\n
\n\n
\n\n
\n\"Blog\ntitle=\"Blog jobs from across the internet\">\n
\nget_footer();\n?>\n\n
"}; addLoadEvent(function(){ document.getElementById("template").onchange=insertTemplate; var url = document.location.href; //Don't insert the default template in the templates section. if(url.indexOf("edit.php?page=article-templates\/template_form.php")+1) return; //Don't insert the default template in a edit page/post action if(url.indexOf("post.php?action=edit")+1) return; if(url.indexOf("page.php?action=edit")+1) return; //Setting the template in the URL as the default template. var match = url.match(/[\?\&]template=([^\&]+)/); if(match) { var template = match[1]; document.getElementById("template").value = template; insertTemplate('url'); return; } //If there is a default template, insert that var default_template = ""; if(default_template) { document.getElementById("template").value = default_template; insertTemplate('default'); } }); function insertTemplate(insertion_type) { template = document.getElementById("template").value; if(template == 'none') return; if(!all_templates[template]) return; if(window.tinyMCE && document.getElementById("content").style.display=="none") { //If there is any content in the text area, don't insert the template if(getText(tinyMCE.get('content').getContent())) { alert("Cannot insert template - content already present"); document.getElementById("template").value = "none"; return; } tinyMCE.get('content').setContent(all_templates[template].replace(/\n/g,"
")); } else if(document.getElementById("content")) { //If there is any content in the text area, don't insert the template if(getText(document.getElementById("content").value)) { alert("Cannot insert template - content already present"); return; } document.getElementById("content").value = all_templates[template]; } } function getText(str) { return str.replace(/<[^>]+>/g,'').replace(/\s/g,''); }

Reply to this.
Binny V A at 05 Jun, 2008 10:58
What version of Wordpress are you using?
Reply to this.
Lilly Mouse at 05 Jun, 2008 11:19
oh, hey, quick response!

I'm using the latest version: Version 2.5.1

The thing is that I think it might have possibly worked when I first installed it.

I'd like to uninstall and try starting from scratch, but I'm not sure which tables are relevant to it in my DB?

What do you think the prob is?
Reply to this.
Lilly Mouse at 05 Jun, 2008 11:32
sorry just to add... it also seems to have frozen everything.

Even if I try delete the template I started with and uninstall, is still shows that old template.

Reply to this.
Lilly Mouse at 05 Jun, 2008 11:40
Okay, now I'm desperate to remove this, but can't! Urgh, really frustrating.

Binny, any help would result in a very happy me and huge happy points sent to you!

I'd love for it to work if you can help... but if not then I need to remove this template and go back to my old methods!

HEEEEELP! :)

Thanks,
Lilly Mouse
Reply to this.
Binny V A at 05 Jun, 2008 01:17
I can help you via email - this is not the best way for two way communication.
Reply to this.
Lilly Mouse at 06 Jun, 2008 06:12
Just to add for anyone else reading this, that I sorted out the problem.

The problem was definitely not the plugin which is a superb idea!

I missed a piece of rogue php code in my index file and it was making the same layout appear even after I'd deleted the plugin! Cleared my cache! Even deleted my wp-cache file!

Dope!

Thanks Binny for all your support over email!

Ciao for now,
Lilly
Reply to this.
televiziune online at 24 Jun, 2008 03:00
awesome plugin 10q
Reply to this.
Link Exchange at 10 Jul, 2008 03:04
Hi Binny,

I was actually trying to play with code with a purpose.
I wanted to create a Template in Admin --> User Id = 1

Set it as Default and wanted to make it default for all the users.

i tried to replace "current user" and "user" variables with 1 and play

i do get list of template as other user, but i dont get content of template

Regards

Link Exchange Guy :)
Reply to this.
Link Exchange at 10 Jul, 2008 03:31
hey

i think what i am gathering from my reading is

* we are using regular post with a different type i.e. template
* content by admin cant be edited or open in edit mode by user with contributor level ?

do you think we can do anything to solve this problem ?

Link Exchange Guy :)
Reply to this.
Binny V A at 10 Jul, 2008 08:16
Send me an email - I'll give you the modified code.
Reply to this.
Link Exchange at 13 Jul, 2008 07:33
Hey ! bro ...

got the code from you .. thanks :)

Mihir
Reply to this.
Philix at 23 Jul, 2008 07:20
Thanks, this is exactly what i was looking for.
Reply to this.
Maria at 06 Aug, 2008 04:54
I wonder, where, what folder, is new template created?
Reply to this.
Binny V A at 11 Aug, 2008 01:16
Its in the database - you don't have to worry about that.
Reply to this.
shawn at 12 Aug, 2008 08:54
I've only been using wordpress for about a week now, so forgive my ignorance.
Is there an example of a template code insert on your site?
I'm coming from a postnuke cms background so I am very familiar with templates etc, just do not know what variables and structure wordpress uses.

thanks for any help you can provide.
Reply to this.
shawn at 12 Aug, 2008 09:10
I don't think my above post was clear enough so here's more of the same question.
IN my current cms I wrote an html 'template' that pulls in a header graphic, has a few columns below that to include a thumbnail if available and also the 'news' content itself, followed by a footer graphic. I use to insert the article text that is input when creating an article, and for my thumbnail if there is one.

[Edit: HTML Code Removed]
I'm guessing your template engine does the same thing.

What I don't know is the actual variables I would input into the html code, to have it display the post itself in my table, or other variables for thumbnails etc.

Is there a 'global' wordpress list that is available for the variables? Or does your code use your own?
Reply to this.
Binny V A at 22 Aug, 2008 10:30
My plugin will not allow that levels of customization. To do what you just described, you will have to edit the active wordpress theme.
Reply to this.
Eric at 22 Sep, 2008 05:23
No option to create a new template displays on the manage templates page. I'm using 2.6 (and I'm guessing it's not compatible yet?)
Reply to this.
PopuTech at 16 Oct, 2008 11:00
Can anybody tell me a similar plug in that is compatible to 2.6?
Reply to this.
PopuTech at 16 Oct, 2008 11:01
I was looking at wordpress repository and yet I didn't find any... it would be hard to downgrade...
Reply to this.
Binny V A at 16 Oct, 2008 11:50
Take a look at the older version of this plugin.
Reply to this.
Anonymous at 19 Oct, 2008 04:11
It would be sooooo cool if you were able to set template that all the contributors could see it. Please let me know when you do. this is very useful.
Reply to this.
Time Synchronisation at 10 Dec, 2008 03:07
This is a really good plugin
Reply to this.
Tom Townsend at 18 Dec, 2008 10:56
I have been using your plug in for some time with development of Real Estate sites and this has been great for posting Real Estate listings. I just updated my sites to WP 2.7 and it appears that the Plug-in is not working correctly.

Templates that I had previously created now open up in html, and if I attempt to create new template I get the same results. I cannot view visual and lot of editing functions are not showing up. Can you please update for compatibility with WP 2.7 or let us know when you plan to update ?

Thanks
Reply to this.
Binny V A at 19 Dec, 2008 06:54
A new version is in the works. I have some other plugins too - I am updating all of them. So it might be a while. I think I can finish by the end of 2008.
Reply to this.
freigeist at 09 Jan, 2009 02:55
I want to use your plugin together with qtranslate (language-switcher-plugin), but it does not work with 2 languages.
it shows up the title in 2 languages (german and english in my case), but I can´t enter content in the editor. its also impossible to switch language in the editor.

when I turn qtranslate off, it works fine. :-)

can you give me some hints what I have to change to make it work with qtranslate? (WP 2.7 / qtranslate 2.1.1)
I´m not a programmer, but hopefully with some tips I can do it with your help.

thanks for this nice plugin and thanks for your help :-D

freigeist
Reply to this.
Binny V A at 15 Jan, 2009 11:07
I have not yet tried the plugin with qtranslate - I'll install that in a test blog and see what I can do. Meanwhile feel free to play around with the code - with a little luck, you might be able to fix it.
Reply to this.
Mihai at 12 Jan, 2009 12:53
Hi!

Your plugin is really great! Thanks a lot!

I wonder if you can make it work for multiple users of the same blog. I'll appreciate very much such as change!

Best Regards,

Mihai
Reply to this.
Binny V A at 15 Jan, 2009 11:08
I'll see if I can do that in the next version of the plugin.
Reply to this.
Sergio at 31 May, 2009 11:54
Wow! this save work.
Reply to this.
Dan Warne at 26 Jun, 2009 10:32
I'd like to add my name to the list of people who would really appreciate it if you could make the templates available to all users, not just the creator. Since templated content is most likely to be a part of a site with a multi-user workflow, this would be a huge improvement to the plugin. :-) Awesome work on what you've done so far though. Thank you!
Reply to this.
Brook at 01 Jul, 2009 09:05
Hi there

How do i create a new template? there is no option anywhere to do this.

Reply to this.
Comment

Please dont enter you comments in this form - this is a fake form to confuse spamming bots. The next form is the real one.




Comment




Comment Formating : HTML tags a, strong, em, b, i, code, pre, p and br allowed. Other tags will be shown as code(< will become &lt;). Urls, Line breaks will be auto-formated.
Subscribe to Feed