[Wordpress plugin] DateTitle – A plugin for automatic post titles
These days I seem to be writing very little code and I do that only if I need something and I am unable to find something similar already written. Recently I shifted my journal from LiveJournal to a self hosted WordPress install on my own site. I write in my journal fairly often though most of it is either private or friends only. I find it difficult to come up with a post title every time. Leaving the title blank kind of messes things up with WordPress so I started putting the current day and date as the post title – this keeps the URLs very nice and user friendly. After doing this a couple of times it struck me – Why not automate this using a plugin. A search revealed that the nearest plugin to my needs was SequenTitle automatically creates a sequentially numbered post title of your choosing if the title is left blank when the post is published.
Looking through the code I quickly realized what I wanted was very simple, about 30 mins of hacking and here you have the DateTitle plugin. Most of the code I borrowed from SequenTitle plugin mentioned above. Installation is like any other WordPress plugin – unzip and upload to the plugins folder, activate from the plugins page and you will get a DateTitle option in the settings menu…

About this entry
You’re currently reading “ [Wordpress plugin] DateTitle – A plugin for automatic post titles ,” an entry on SANIsoft – PHP for E Biz
- Published:
- 6.30.09 / 10:43am
- Author:
- Tarique Sani
7 Comments
Jump to comment form | comments rss | trackback uri