Title: hCard ShortCode
Author: Comparto Web
Published: <strong>11 d'abril de 2012</strong>
Last modified: 29 de desembre de 2015

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://s.w.org/plugins/geopattern-icon/hcard-shortcode.svg)

# hCard ShortCode

 Per [Comparto Web](https://profiles.wordpress.org/comparto-web/)

[Baixa](https://downloads.wordpress.org/plugin/hcard-shortcode.zip)

 * [Detalls](https://ca.wordpress.org/plugins/hcard-shortcode/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/hcard-shortcode/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/hcard-shortcode/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/hcard-shortcode/#developers)

 [Suport](https://wordpress.org/support/plugin/hcard-shortcode/)

## Descripció

hCard ShortCode translates vCard to hCard and let’s you display them using a simple[
hcard] shortcode.

### How it works:

 1. install the plugin
 2. upload the vCards in the Media section
 3. choose a **no-space only-alphanumeric lowercase** Title for the vCards
 4. use the [hcard vcard=’vcard title’ only=’optional comma separated vcard fields 
    to display’] shortcode
 5. style the resulting hCard using CSS

### Which fields are supported?

hCard ShortCode supports the following vCard fields:

 * `N` given name and family name;
 * one `EMAIL` optionally use `TYPE` to specify a label to use in the <a> link;
 * one `TITLE`
 * one `ORG`
 * one `PHOTO` with `TYPE=URL`
 * one or more `URL`, optionally use `TYPE` to specify a label to use in the <a>
   link;
 * one `ADR`

### Can you give me a sample vCard?

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<h3>How can use the 'only' option?</h3>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 name
 * `email` for the `EMAIL`
 * `org:title` for the `TITLE`
 * `org:name` for the `ORG`
 * `url` for the `URL`s
 * `photo` for the `PHOTO`
 * `location` for thr `ADR`

### An example:

Here’s a shortcode example:

    ```
    [hcard vcard="sandropaganotti" only="name,email,org:title,photo,url"]<h3>Kudos and acknowledgements:</h3>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!
    ```

## Instal·lació

 1. install the plugin (copy in wp-content/plugins and activate)
 2. upload the vCards in the Media section
 3. choose a **no-space only-alphanumeric lowercase** Title for the vCards
 4. use the [hcard vcard=’vcard title’ only=’optional comma separated vcard fields 
    to display’] shortcode
 5. style the resulting hCard using CSS

## PMF

  Can I use it in text widgets?

Sure! just add `add_filter('widget_text', 'do_shortcode');` to your `functions.php`.

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«hCard ShortCode» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

 *   [ Comparto Web ](https://profiles.wordpress.org/comparto-web/)
 *   [ sandropaganotti ](https://profiles.wordpress.org/sandropaganotti/)

[Traduïu «hCard ShortCode» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/hcard-shortcode)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/hcard-shortcode/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/hcard-shortcode/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/hcard-shortcode/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/hcard-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### Trunk

 * tested with WordPress 4.4
 * inititial release

## Meta

 *  Versió **1.0.1**
 *  Darrera actualització **fa 11 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 3.0 o posterior **
 *  Provada fins a **4.4.34**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/hcard-shortcode/)
 * Etiquetes
 * [hcard](https://ca.wordpress.org/plugins/tags/hcard/)[vcard](https://ca.wordpress.org/plugins/tags/vcard/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/hcard-shortcode/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[Your review](https://wordpress.org/support/plugin/hcard-shortcode/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/hcard-shortcode/reviews/)

## Col·laboradors

 *   [ Comparto Web ](https://profiles.wordpress.org/comparto-web/)
 *   [ sandropaganotti ](https://profiles.wordpress.org/sandropaganotti/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/hcard-shortcode/)