>
Download This Plugin | |
Download Elegant Themes | |
Name | hCard ShortCode |
Version | 1.0.0 |
Author | Comparto Web |
Rating | 0 |
Last updated | 2012-04-11 11:51:00 |
Downloads |
953
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
hCard ShortCode plugin added 27 bytes of resources to the Home page and 32 bytes of resources to the sample Post page.
hCard ShortCode plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! hCard ShortCode plugin ads no tables to your Wordpress blog database.hCard ShortCode translates vCard to hCard and let's you display them using a simple [hcard] shortcode.
How it works:hCard ShortCode supports the following vCard fields:
N
given name and family name;EMAIL
optionally use TYPE
to specify a label to use in the <a> link;TITLE
ORG
PHOTO
with TYPE=URL
URL
, optionally use TYPE
to specify a label to use in the <a> link;ADR
Sure, here it is:
BEGIN:VCARD
N:Paganotti;Sandro;;;
EMAIL;TYPE=Email:sandro.paganotti@compartoweb.com
TITLE:Software Architect
ORG:Comparto Web
PHOTO;VALUE=URL;TYPE=PNG:/wp-content/uploads/2012/04/official_me-43x43.png
URL;TYPE=Twitter:https://twitter.com/#!/sandropaganotti
URL;TYPE=LinkedIn:http://www.linkedin.com/in/sandropaganotti
ADR;INTL;PARCEL;WORK:;;Via Cipro 66;Brescia;Brescia;25100;Italia
END:VCARD
How can use the 'only' option?
the only
option can be used to limit the fields printed on the hCard, you
can declare a comma-separated list of the fields you want to be displayed, here's the
keyword:
name
for given name and family nameemail
for the EMAIL
org:title
for the TITLE
org:name
for the ORG
url
for the URL
sphoto
for the PHOTO
location
for thr ADR
Here's a shortcode example:
[hcard vcard="sandropaganotti" only="name,email,org:title,photo,url"]
Kudos and acknowledgements:
This plugin uses the cool Contact_Vcard_Parse class from Paul M. Jones pjones@ciaweb.net and a modified version of the phpMicroformats class from Tobias Kluge (enarion.net). Thank you!