Title: Meta Fetcher
Author: webdeveric
Published: <strong>May 20, 2014</strong>
Last modified: December 8, 2015

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Meta Fetcher

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

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

 * [Details](https://test.wordpress.org/plugins/meta-fetcher/#description)
 * [Reviews](https://test.wordpress.org/plugins/meta-fetcher/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/meta-fetcher/#installation)
 * [Development](https://test.wordpress.org/plugins/meta-fetcher/#developers)

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

## Description

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}”.

## Installation

 1. Upload `meta-fetcher` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add shortcode to your content: `[meta name="some_name_here" default="some default
    content"]`

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Meta Fetcher” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “Meta Fetcher” into your language.](https://translate.wordpress.org/projects/wp-plugins/meta-fetcher)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/meta-fetcher/), check
out the [SVN repository](https://plugins.svn.wordpress.org/meta-fetcher/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/meta-fetcher/) by
[RSS](https://plugins.trac.wordpress.org/log/meta-fetcher/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

 *  Version **0.4**
 *  Last updated **10 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0.0 or higher **
 *  Tested up to **4.4.0**
 *  Language
 * [English (US)](https://wordpress.org/plugins/meta-fetcher/)
 * Tags
 * [meta](https://test.wordpress.org/plugins/tags/meta/)[post](https://test.wordpress.org/plugins/tags/post/)
   [shortcode](https://test.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://test.wordpress.org/plugins/meta-fetcher/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/meta-fetcher/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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