-
Notifications
You must be signed in to change notification settings - Fork 25
Content Type: Testimonial
This is the proposed standard for testimonials and how plugins should handle them. It is an incomplete standard and pending further discussion.
The following is a list of issues related to the testimonials standard.
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.
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:
_testimonial_email
- Meta value:
[email protected]
(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)
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:
_testimonial_url
- Meta value:
http://example.com
(URL)
The post title should serve as the name of the person who made the testimonial. (Note: filter the enter_title_here
hook.)
Plugins should use the standard post content field (post_content
) for storing the testimonial content.
Plugins should use the post date in the case that they want to have specific testimonial dates.