{"id":17640,"date":"2012-04-11T11:45:12","date_gmt":"2012-04-11T11:45:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/hcard-shortcode\/"},"modified":"2015-12-29T19:36:00","modified_gmt":"2015-12-29T19:36:00","slug":"hcard-shortcode","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/hcard-shortcode\/","author":9279605,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"4.4.34","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"hCard ShortCode","header_author":"Comparto Web","header_description":"","assets_banners_color":"","last_updated":"2015-12-29 19:36:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.compartoweb.com","header_author_uri":"http:\/\/www.compartoweb.com","rating":0,"author_block_rating":0,"active_installs":20,"downloads":2732,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[19367,82],"plugin_category":[],"plugin_contributors":[90946,90947],"plugin_business_model":[],"class_list":["post-17640","plugin","type-plugin","status-publish","hentry","plugin_tags-hcard","plugin_tags-vcard","plugin_contributors-comparto-web","plugin_contributors-sandropaganotti","plugin_committers-comparto-web"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/hcard-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>hCard ShortCode translates vCard to hCard and let's you display them using a simple [hcard] shortcode.<\/p>\n\n<h3>How it works:<\/h3>\n\n<ol>\n<li>install the plugin<\/li>\n<li>upload the vCards in the Media section<\/li>\n<li>choose a <strong>no-space only-alphanumeric lowercase<\/strong> Title for the vCards<\/li>\n<li>use the [hcard vcard='vcard title' only='optional comma separated vcard fields to display'] shortcode <\/li>\n<li>style the resulting hCard using CSS<\/li>\n<\/ol>\n\n<h3>Which fields are supported?<\/h3>\n\n<p>hCard ShortCode supports the following vCard fields:<\/p>\n\n<ul>\n<li><code>N<\/code> given name and family name;<\/li>\n<li>one <code>EMAIL<\/code> optionally use <code>TYPE<\/code> to specify a label to use in the &lt;a&gt; link;<\/li>\n<li>one <code>TITLE<\/code><\/li>\n<li>one <code>ORG<\/code><\/li>\n<li>one <code>PHOTO<\/code> with <code>TYPE=URL<\/code><\/li>\n<li>one or more <code>URL<\/code>, optionally use <code>TYPE<\/code> to specify a label to use in the &lt;a&gt; link;<\/li>\n<li>one <code>ADR<\/code><\/li>\n<\/ul>\n\n<h3>Can you give me a sample vCard?<\/h3>\n\n<p>Sure, here it is:<\/p>\n\n<pre><code>BEGIN:VCARD\nN:Paganotti;Sandro;;;\nEMAIL;TYPE=Email:sandro.paganotti@compartoweb.com\nTITLE:Software Architect\nORG:Comparto Web\nPHOTO;VALUE=URL;TYPE=PNG:\/wp-content\/uploads\/2012\/04\/official_me-43x43.png\nURL;TYPE=Twitter:https:\/\/twitter.com\/#!\/sandropaganotti\nURL;TYPE=LinkedIn:http:\/\/www.linkedin.com\/in\/sandropaganotti\nADR;INTL;PARCEL;WORK:;;Via Cipro 66;Brescia;Brescia;25100;Italia\nEND:VCARD&lt;h3&gt;How can use the 'only' option?&lt;\/h3&gt;the `only` option can be used to limit the fields printed on the hCard, you\n<\/code><\/pre>\n\n<p>can declare a comma-separated list of the fields you want to be displayed, here's the\nkeyword:<\/p>\n\n<ul>\n<li><code>name<\/code> for given name and family name<\/li>\n<li><code>email<\/code> for the <code>EMAIL<\/code><\/li>\n<li><code>org:title<\/code> for the <code>TITLE<\/code> <\/li>\n<li><code>org:name<\/code> for the <code>ORG<\/code><\/li>\n<li><code>url<\/code> for the <code>URL<\/code>s<\/li>\n<li><code>photo<\/code> for the <code>PHOTO<\/code><\/li>\n<li><code>location<\/code> for thr <code>ADR<\/code><\/li>\n<\/ul>\n\n<h3>An example:<\/h3>\n\n<p>Here's a shortcode example:<\/p>\n\n<pre><code>[hcard vcard=\"sandropaganotti\" only=\"name,email,org:title,photo,url\"]&lt;h3&gt;Kudos and acknowledgements:&lt;\/h3&gt;This plugin uses the cool Contact_Vcard_Parse class from Paul M. Jones &lt;pjones@ciaweb.net&gt; and a modified version of the phpMicroformats class from Tobias Kluge (enarion.net). Thank you!\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>install the plugin (copy in wp-content\/plugins and activate)<\/li>\n<li>upload the vCards in the Media section<\/li>\n<li>choose a <strong>no-space only-alphanumeric lowercase<\/strong> Title for the vCards<\/li>\n<li>use the [hcard vcard='vcard title' only='optional comma separated vcard fields to display'] shortcode <\/li>\n<li>style the resulting hCard using CSS<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I use it in text widgets?<\/dt>\n<dd><p>Sure! just add <code>add_filter('widget_text', 'do_shortcode');<\/code> to your <code>functions.php<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>Trunk<\/h4>\n\n<ul>\n<li>tested with Wordpress 4.4<\/li>\n<li>inititial release<\/li>\n<\/ul>","raw_excerpt":"hCard ShortCode is a WordPress plugin that translates vCard to hCard and let&#039;s you display them using a simple [hcard] shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17640"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/comparto-web"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17640"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17640"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17640"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17640"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17640"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}