Auto Post Title

Use shortcodes to automatically generate and format titles.

Author:ThoughtLab (profile at wordpress.org)
WordPress version required:2.0.2
WordPress version tested:3.1.4
Plugin version:1.2.2
Added to WordPress repository:17-03-2011
Last updated:12-05-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:46
Rated by:3
Plugin URI:http://www.thoughtlab.com/blog/index.php/auto...
Total downloads:6 294
Active installs:300+
plugin download
Click to start download

There are times when you want to automatically include information into the title of a post, page, or custom post type. This plugin adds an item to the Admin Settings menu called "Title Format." Clicking on this link will give you an options page where you will find a text field for each post type that you have registered in WordPress, including Post and Page. In these text fields, you are able to use shortcodes to build a title format that will be used to generate the title of all posts of that type. For example, say I had a blog with several authors, and I wanted to include the author's name into the title of every post. I could use something like:

[title] - by [author]

So, if I had a post by John Smith, with a title of "An Excellent Post," the title would be displayed as: "An Excellent Post - by John Smith"

Here are the tags that are available:

  • id
  • title
  • author
  • date (use the attribute: format="" to format date. Click here for formatting info.)
  • modified (also takes the format="" attribute.)
  • category
  • content
  • excerpt
  • status (published, draft, etc.)
  • type (the post type)
  • name (the post slug)
  • comments (show number of comments)

Another example:

I might have a website which uses custom post types to catalog my inventory of cars for sale. My 'cars' post type will be displayed in the Auto Post Title options page as 'Cars Title.' Assuming that I have already set up my cars with a year, make, and model as meta data, I would then enter something like this:

[year] [make] [model] For Sale!

Each of my cars will then be shown with a title similar to: "2011 Chevy Camaro For Sale!"

You can also use custom taxonomies as tags. Only the first term will be used.