itemprop WP for SERP/SEO Rich snippets
Add human invisible schema.org itemprop code to post content
This plugin is very simple. Using WordPress built in function to filter element attributes and adding < meta > tags with schema.org item properties.
Example output:
<span itemscope itemtype="http://schema.org/Article" class="itempropwp-wrap">
<!-- Itemprop WP 3.3.6 by Rolands Umbrovskis http://umbrovskis.com -->
<meta itemprop="name" content="Title of the Article" />
<meta itemprop="url" content="http://example.com/seo-optimized-article/" />
<meta itemprop="image" content="http://example.com/images/example.jpg" />
<meta itemprop="author" content="http://example.com/author/authorusername/"/>
<meta itemprop="description" content="excerpt from post" />
<meta itemprop="datePublished" content="2012-09-13 19:17:21" />
<meta itemprop="dateModified" content="2012-09-29 13:33:25" />
<meta itemprop="interactionCount" content="UserComments:356" />
<!-- Itemprop WP 3.3.6 by Rolands Umbrovskis http://umbrovskis.com end -->
</span>
How does it work?
This asumes that Your page is not fully integrated with HTML5's data properties for microdata. This plugin will create small code inside Your full content, with extra microdata from schema.org. This will be ONLY on singular pages - post, page or your custom post type.
Once we are on singular page:
we will extract from it EXCERPT. If You haven't provided excerpt, plugin will look-up for post content, and downsize it to 170 symbols up to full word. If your content consist ONLY of shortcode, it will strip it out, and leave empty content. :( If we have empty content, from previous step, we will use post title. Not best choise, but at least we have somedescription.
If Your post do not have even title, plugin will giveup and your description will be ampty. (This ir very bad :') )
Other options, like datePublished, dateModified (if enabled), UserComments (if enabled), url are taken from post
Development: Git at bitbucket | Github
Developer on twitter @UmbrovskisCom / @SimpleMediaCode
Require PHP at least 5.3
| Author | Rolands Umbrovskis Profile |
| Contributors | rolandinsh |
| Tags | html5, images, itemprop, microdata, rich snippets, richsnippets, schema, schema.org, schema.org itemprop, seo, serp, structured data |
-
3.0 Full futured example http://simplemediacode.com/wordpress-pugins/itemprop-wp/
-
3.3.0 Full futured Review example http://simplemediacode.com/wordpress-pugins/itemprop-wp/
- Unzip the download package
- Upload
itempropwpto the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- See
itempropwp.phpfor usage
3.3.6
- fixed: wp_register_style was called incorrectly. More info bitbucket.org/simplemediacode/itempropwp. Reported RFT Group.
3.3.5
- small bugfix in rare cases: "For some reason all blog articles now have Type: http://schema.org/Review;", thanks to indevd bugreport
3.3.4
- small bugfix in rare cases: "loading content multiple times", thanks to sirene's commit on SimpleMediaCode.org
3.3.3
- small bugfix "Fixing undeclared variables", thanks to semplon's commit on github
3.3.2
- Compatibility with NextGen gallery. Thanks to indevd
3.3.1
- Review summary fix
- updated: better naming
- updated: review On/Off positions
3.3.0
- new: itemprop="review"
- updated: admin interface for options
3.2.0
- updated: admin interface for options
- new: CSS class for wrapper
3.1.4
- updated: itemprop="description"
- Admin interface for options: description lenght (if excerpt not provided),show/hide UserComments:325, show/hide dateModified
3.1.3
- fixed: itemprop="description"
3.1.2
- fix: itemprop="description"
3.1.1
- new: itemprop="description"
3.0
- new: context
- new: itemprop="name"
- new: itemprop="url"
- new: itemprop="image"
- new: itemprop="author"
- new: itemprop="datePublished"
- new: "UserComments:325" itemprop="interactionCount"
2.0
- new code
- now as extendable class function
- new: using WordPress filter for image attributed on thumbnails
1.1
- fix: SMCIPWPURL
1.0
- init
There are no questions for now! Ask!

