Title: Meta Fetcher
Author: webdeveric
Published: <strong>20 de maig de 2014</strong>
Last modified: 8 de desembre de 2015

---

Cerca extensions

![](https://ps.w.org/meta-fetcher/assets/banner-772x250.jpg?rev=917954)

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/meta-fetcher_647b7e.svg)

# Meta Fetcher

 Per [webdeveric](https://profiles.wordpress.org/webdeveric/)

[Baixa](https://downloads.wordpress.org/plugin/meta-fetcher.0.4.zip)

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

 [Suport](https://wordpress.org/support/plugin/meta-fetcher/)

## Descripció

This plugin provides a simple `[meta]` shortcode that allows you to fetch meta information
for the current `$post`.
 There are options to return a single value, multiple values
joined by a user defined string, or a JSON string.

**Examples:**

    ```
    [meta name="your_meta_field"]
    ```

This will return the value of «your_meta_field». If the value is an array, it will
return a comma separated list, unless you specify an alternative join string.

    ```
    [meta name="your_meta_field" single="false"]
    ```

By default, [meta] will return a single value. If you have multiple meta fields 
with the same name, you can get them all by setting single=»false».

    ```
    [meta name="your_meta_field" single="false" json="true"]
    ```

This will return the JSON encoded value of «your_meta_field».

    ```
    [meta name="your_meta_field" single="false" join="|"]
    ```

This will return a pipe separated values of «your_meta_field».

    ```
    [meta name="your_meta_field" shortcode="false"]
    ```

By default, the value will be passed to do_shortcode, unless you turn if off.

    ```
    [meta name="your_meta_field" filters="true"]
    ```

There are a couple filters available if you want to filter the value. They are called
after do_shortcode and before any JSON/array handling.
 They are on be default, 
but can be turned of with filters=»false». The filters are «meta_fetcher_value» 
and «meta_fetcher_{$name}».

## Instal·lació

 1. Upload `meta-fetcher` folder to the `/wp-content/plugins/` directory
 2. Activa l’extensió mitjançant el menú ‘Extensions’ del WordPress
 3. Add shortcode to your content: `[meta name="some_name_here" default="some default
    content"]`

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

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

Col·laboradors

 *   [ webdeveric ](https://profiles.wordpress.org/webdeveric/)

[Traduïu «Meta Fetcher» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/meta-fetcher)

### Interessats en el desenvolupament?

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

## Registre de canvis

#### 0.4

 * Added option to return a JSON string.
 * Added options for handling array meta values.

#### 0.3

 * Added better checking for argument values.

#### 0.2

 * Added additional arguments.

#### 0.1

 * Initial build

## Meta

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

## Valoracions

Encara no s'ha enviat cap ressenya.

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

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

## Col·laboradors

 *   [ webdeveric ](https://profiles.wordpress.org/webdeveric/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

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