Subtitler, My First WordPress Plugin: Put Subtitles on your Blog

by Joshua Unseth on July 4, 2008


So this is a really hacked together plugin right now. It works, and I don’t think it should mess anything up, but the coding isn’t pretty and it does some weird things depending on which browser you’re using. I have been frustrated with WordPress’ lack of ability to put subtitles in magazines. It is pretty obvious that WordPress isn’t designed perfectly for it. There are an awful lot of bloggers[1][2][3], and there is even one company that claims to have a plugin for subtitles but hasn’t made it available for download. who have written on how to use custom fields on your blog to create subtitles. Anyhow, I don’t want to scroll down to the custom fields part of my entry screen, but I do want subtitles.

My plugin allows you to add subtitles by typing the_subtitle() into your theme. It actually does just create a custom field, but it’s in a location that is convenient (right under the Title input), and it’s got an appropriate tab (right after the title input). So, basically, it’s easy to use and convenient. I’ve only tested it in a WordPress 2.5 installation, and I doubt it works in anything much older.

Try it out, let’s debug the sucker together. It’s got a few problems, but nothing too terrible.

Download it here


{ 6 comments… read them below or add one }

Ruth September 25, 2008 at 2:09 am

This is great. Validates perfectly and is exactly what I was looking for. Thank you.

mark September 27, 2008 at 10:47 am

Brilliant. Small aesthetic problem: I think you’re using absolute positioning; the field doesn’t move when WP display the AJAX-loaded notification after saving (‘Page updated. Continue editing below or go back.’), resulting in the Title field ending up below the Subtitle field.

mark September 27, 2008 at 11:21 am

Enable the visual editor to see some more problems of the absolute positioning. The subtitle input field floats above the toolbar of the visual editor.

pandora uk December 18, 2010 at 10:51 am

Also what as a result?

vikram March 18, 2011 at 3:54 am

thanks for this plugin
but where i have to place the_subtitle() exactly while using twenty ten theme to show the subtitles (file name and location of of code where i have to place this code)

Wordpress Plugin May 31, 2011 at 8:54 am

Cool plugin its helpful for seo as well i will definitely refer this plugin to my friends.

Leave a Comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

{ 3 trackbacks }