WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

Auto Post Title

Use shortcodes to automatically generate and format titles.

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.

Requires: 2.0.2 or higher
Compatible up to: 3.1.4
Last Updated: 2011-5-12
Downloads: 4,919

Ratings

4 stars
4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
0,1,0