Content Type: Testimonial

Justin Tadlock edited this page Jul 10, 2015 · 9 revisions


This is standard for testimonials and how plugins should handle them. This standard was discussed and decided upon via #12: Testimonial Standard.

You can find example code for the current standard in the testimonials directory

Post Types

  • testimonial


  • testimonial_category


Note that all metadata doesn't necessarily have to be used by all plugins. This is simply a standard so that plugin authors will know exactly how to name and format their metadata.

Customer/Client/User Image

The primary method for getting the person's image is to use their email address to display their avatar/Gravatar via the get_avatar() function.

  • Meta key: email
  • Meta value: (email address)

The secondary method of getting a person's image is to use the standard featured image functionality. Some plugins may opt to only use this method rather than checking for an avatar. This method should use core WP's featured image functionality.

  • Meta key: _thumbnail_id
  • Meta value: 100 (image attachment ID)

Testimonial URL

This meta key is for linking to the person who made the testimonial, such as the person's Web site or the Web page where the original testimonial was written.

  • Meta key: url
  • Meta value: (URL)

Other data

Customer/Client/User Name

The post title should serve as the name of the person who made the testimonial. (Note: filter the enter_title_here hook.)

Testimonial Content

Plugins should use the standard post content field (post_content) for storing the testimonial content.

Testimonial Date

Plugins should use the post date in the case that they want to have specific testimonial dates.

WordPress Plugins

See plugins which follow this standard.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.