{"id":29598,"date":"2014-05-20T14:17:44","date_gmt":"2014-05-20T14:17:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/meta-fetcher\/"},"modified":"2015-12-08T05:15:43","modified_gmt":"2015-12-08T05:15:43","slug":"meta-fetcher","status":"publish","type":"plugin","link":"https:\/\/xho.wordpress.org\/plugins\/meta-fetcher\/","author":6822165,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4","stable_tag":"0.4","tested":"4.4.0","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Meta Fetcher","header_author":"Eric King","header_description":"","assets_banners_color":"647b7e","last_updated":"2015-12-08 05:15:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/phplug.in\/","header_author_uri":"http:\/\/webdeveric.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1719,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"917954","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"917954","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[683,86,80],"plugin_category":[43],"plugin_contributors":[84180],"plugin_business_model":[],"class_list":["post-29598","plugin","type-plugin","status-publish","hentry","plugin_tags-meta","plugin_tags-post","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-webdeveric","plugin_committers-webdeveric"],"banners":{"banner":"https:\/\/ps.w.org\/meta-fetcher\/assets\/banner-772x250.jpg?rev=917954","banner_2x":"https:\/\/ps.w.org\/meta-fetcher\/assets\/banner-1544x500.jpg?rev=917954","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/meta-fetcher_647b7e.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin provides a simple <code>[meta]<\/code> shortcode that allows you to fetch meta information for the current <code>$post<\/code>.\nThere are options to return a single value, multiple values joined by a user defined string, or a JSON string.<\/p>\n\n<p><strong>Examples:<\/strong><\/p>\n\n<pre><code>[meta name=\"your_meta_field\"]\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<pre><code>[meta name=\"your_meta_field\" single=\"false\"]\n<\/code><\/pre>\n\n<p>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\".<\/p>\n\n<pre><code>[meta name=\"your_meta_field\" single=\"false\" json=\"true\"]\n<\/code><\/pre>\n\n<p>This will return the JSON encoded value of \"your_meta_field\".<\/p>\n\n<pre><code>[meta name=\"your_meta_field\" single=\"false\" join=\"|\"]\n<\/code><\/pre>\n\n<p>This will return a pipe separated values of \"your_meta_field\".<\/p>\n\n<pre><code>[meta name=\"your_meta_field\" shortcode=\"false\"]\n<\/code><\/pre>\n\n<p>By default, the value will be passed to do_shortcode, unless you turn if off.<\/p>\n\n<pre><code>[meta name=\"your_meta_field\" filters=\"true\"]\n<\/code><\/pre>\n\n<p>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.\nThey are on be default, but can be turned of with filters=\"false\". The filters are \"meta_fetcher_value\" and \"meta_fetcher_{$name}\".<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>meta-fetcher<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add shortcode to your content: <code>[meta name=\"some_name_here\" default=\"some default content\"]<\/code><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.4<\/h4>\n\n<ul>\n<li>Added option to return a JSON string.<\/li>\n<li>Added options for handling array meta values.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Added better checking for argument values.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added additional arguments.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial build<\/li>\n<\/ul>","raw_excerpt":"This plugin provides a simple [meta] shortcode that allows you to fetch meta information for the current $post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29598"}],"author":[{"embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webdeveric"}],"wp:attachment":[{"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29598"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29598"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29598"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29598"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29598"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/xho.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}