This block is all in one solution to extend the functionality of query loop blocks. Also, you can use it to build custom single pages in directory style.

Meta getter block can retrieve values from next data stored in items:

  1. Custom fields
  2. Woocommerce local attributes
  3. Woocommerce global attributes
  4. Attribute links
  5. Author meta
  6. Taxonomy
  7. Taxonomy links
  8. Site data

You can control size, color, labels, prefix, postfix

05/07/2022 – Update

Added option to get values from ACF plugin’s special fields (checkboxes, multi selects, repeatable fields, file, embeds, radiobuttons, date fields, etc)

Common scenarios where you can use this block – featured attribute area inside posts or products where you highlight some specific attributes

Block supports query loop block and can be used to build custom queries

Meta getter also can get values from arrays which are stored in fields. This means that you can use it to get values from ACF plugin fields and from any other plugins which store data in custom fields or taxonomies (JetEngine, PODS, MetaFields, CPT UI, etc)

Formatters

01/03/2023 – Update

Added Post formatting options: conversion for date values, making value as post link, mail formatting, conversion of array-like values (ACF multi-choice) to lists, WISIWYG formatting, etc

There are few possible scenarios when you may need to use special Data format feature in Meta getter.

Format Scenarios
Here are few common scenarios:
How Get File URL by ID and show as “Download” link

You may have stored File ID in data and you want to convert it to File download link.

Enable Data Format File ID to URL

How to show tags or categories in Tag format

Enable Taxonomy Terms option. By default, it will show you comma separated list but you can convert this to tags. In Data format select Comma Separator to Tags or Lists. You will find also extra options. You can enable Flexbox for tags and set column gap. You will find also design options, where you can style tags. And you will find also option to show only first tag

How to show difference time

You can use Meta getter to show publish date or date of editing if you select Post Data – Published date. But it’s more practical to show difference with current date so users can see how much time past from date

How to show Mail, phone links

Select Mail or Phone data format. Highly likely you don’t want to show phone or mail directly, but you will use label like “Phone me” or “Mail Me”. By default, label will be the email, but you can change this in Label – Label replacement for value

Copy this post’s content
<!-- wp:paragraph -->
<p>This block is all in one solution to extend the functionality of query loop blocks. Also, you can use it to build custom single pages in directory style. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Meta getter block can retrieve values from next data stored in items:</p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true} -->
<ol><!-- wp:list-item -->
<li>Custom fields</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Woocommerce local attributes</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Woocommerce global attributes</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Attribute links</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Author meta</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Taxonomy</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Taxonomy links</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Site data</li>
<!-- /wp:list-item --></ol>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>You can control size, color, labels, prefix, postfix</p>
<!-- /wp:paragraph -->

<!-- wp:greenshift-blocks/infobox {"id":"gsbp-86948cd6-7e57","type":"update","date":"05/07/2022","takeDate":true} -->
<div class="wp-block-greenshift-blocks-infobox gspb_infoBox gspb_infoBox-id-gsbp-86948cd6-7e57" id="gspb_infoBox-id-gsbp-86948cd6-7e57"><div class="gs-box update_type "><div class="gs-box-icon"></div><span class="label-info">05/07/2022 - Update</span><div class="gs-box-text"><!-- wp:paragraph -->
<p>Added option to get values from ACF plugin's special fields (checkboxes, multi selects, repeatable fields, file, embeds, radiobuttons, date fields, etc)</p>
<!-- /wp:paragraph --></div></div></div>
<!-- /wp:greenshift-blocks/infobox -->

<!-- wp:paragraph -->
<p>Common scenarios where you can use this block - featured attribute area inside posts or products where you highlight some specific attributes</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":669,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://greenshiftwp.com/wp-content/uploads/2022/05/directory.jpg" alt="" class="wp-image-669"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Block supports query loop block and can be used to build custom queries</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":670,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://greenshiftwp.com/wp-content/uploads/2022/05/directory2.jpg" alt="" class="wp-image-670"/></figure>
<!-- /wp:image -->

<!-- wp:greenshift-blocks/infobox {"id":"gsbp-c86996f8-b5fc"} -->
<div class="wp-block-greenshift-blocks-infobox gspb_infoBox gspb_infoBox-id-gsbp-c86996f8-b5fc" id="gspb_infoBox-id-gsbp-c86996f8-b5fc"><div class="gs-box info_type icon_type"><div class="gs-box-icon"><svg x="0px" y="0px" viewBox="0 0 512 512"> <g><g> <path d="M256,0C114.497,0,0,114.507,0,256c0,141.503,114.507,256,256,256c141.503,0,256-114.507,256-256 C512,114.497,397.492,0,256,0z M256,472c-119.393,0-216-96.615-216-216c0-119.393,96.615-216,216-216 c119.393,0,216,96.615,216,216C472,375.393,375.384,472,256,472z"></path> </g> </g> <g> <g> <path d="M256,214.33c-11.046,0-20,8.954-20,20v128.793c0,11.046,8.954,20,20,20s20-8.955,20-20.001V234.33 C276,223.284,267.046,214.33,256,214.33z"></path> </g> </g> <g> <g> <circle cx="256" cy="162.84" r="27"></circle> </g> </g> </svg></div><div class="gs-box-text"><!-- wp:paragraph -->
<p>Meta getter also can get values from arrays which are stored in fields. This means that you can use it to get values from ACF plugin fields and from any other plugins which store data in custom fields or taxonomies (JetEngine, PODS, MetaFields, CPT UI, etc)</p>
<!-- /wp:paragraph --></div></div></div>
<!-- /wp:greenshift-blocks/infobox -->

<!-- wp:heading -->
<h2 class="wp-block-heading" id="formatters">Formatters</h2>
<!-- /wp:heading -->

<!-- wp:greenshift-blocks/infobox {"id":"gsbp-93c44603-de28","type":"update","date":"01/03/2023","takeDate":true} -->
<div class="wp-block-greenshift-blocks-infobox gspb_infoBox gspb_infoBox-id-gsbp-93c44603-de28" id="gspb_infoBox-id-gsbp-93c44603-de28"><div class="gs-box update_type "><div class="gs-box-icon"></div><span class="label-info">01/03/2023 - Update</span><div class="gs-box-text"><!-- wp:paragraph -->
<p>Added Post formatting options: conversion for date values, making value as post link, mail formatting, conversion of array-like values (ACF multi-choice) to lists, WISIWYG formatting, etc</p>
<!-- /wp:paragraph --></div></div></div>
<!-- /wp:greenshift-blocks/infobox -->

<!-- wp:paragraph -->
<p>There are few possible scenarios when you may need to use special Data format feature in Meta getter.</p>
<!-- /wp:paragraph -->

<!-- wp:greenshift-blocks/howto {"id":"gsbp-2711200","title":"Format Scenarios","description":"Here are few common scenarios:"} -->
<!-- wp:greenshift-blocks/howto-item {"title":"How Get File URL by ID and show as \u0022Download\u0022 link","blockVisibility":{},"conditions_arr_visibility":[]} -->
<!-- wp:paragraph {"placeholder":"Add content here or replace by custom block"} -->
<p>You may have stored File ID in data and you want to convert it to File download link.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Enable Data Format File ID to URL</p>
<!-- /wp:paragraph -->

<!-- wp:greenshift-blocks/image {"id":"gsbp-ff549fd","dynamicGClasses":[],"spacing":{"margin":{"values":{},"locked":false},"padding":{"values":{},"locked":false}},"align":[null,null,null,null],"scale":[],"positionImage":[],"valign":["top",null,null,null],"width":["300px",null,null,null],"widthUnit":["px","px","px","px"],"heightUnit":["px","px","px","px"],"height":["auto",null,null,null],"customWidth":[null,null,null,null],"customHeight":[null,null,null,null],"originalWidth":674,"originalHeight":962,"shadow":{},"border":{"borderRadius":{"values":{"topLeft":["18px"],"topRight":["18px"],"bottomRight":["18px"],"bottomLeft":["18px"]},"locked":true},"style":{},"size":{},"color":{},"styleHover":{},"sizeHover":{},"colorHover":{},"custom":{},"customEnabled":{},"preset":5},"background":{},"animation":{"duration":800,"easing":"ease","type":""},"responsive":{},"position":{"positionType":["","","",""],"positions":{"values":{}}},"csstransform":{},"csstransformClip":{},"mediaurl":"https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]","mediaid":5141,"ratio1":[],"ratio2":[],"dynamicimage":{},"className":"","blockVisibility":{},"conditions_arr_visibility":[]} -->
<div class="wp-block-greenshift-blocks-image gspb_image gspb_image-id-gsbp-ff549fd" id="gspb_image-id-gsbp-ff549fd"><img src="https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]" data-src="" loading="lazy" width="300px" height="962"/></div>
<!-- /wp:greenshift-blocks/image -->
<!-- /wp:greenshift-blocks/howto-item -->

<!-- wp:greenshift-blocks/howto-item {"title":"How to show tags or categories in Tag format","blockVisibility":{},"conditions_arr_visibility":[]} -->
<!-- wp:paragraph {"placeholder":"Add content here or replace by custom block"} -->
<p>Enable Taxonomy Terms option. By default, it will show you comma separated list but you can convert this to tags. In Data format select Comma Separator to Tags or Lists. You will find also extra options. You can enable Flexbox for tags and set column gap. You will find also design options, where you can style tags. And you will find also option to show only first tag</p>
<!-- /wp:paragraph -->

<!-- wp:greenshift-blocks/image {"id":"gsbp-d7175d5","spacing":{"margin":{"values":{},"locked":false},"padding":{"values":{},"locked":false}},"align":[null,null,null,null],"scale":[],"positionImage":[],"valign":["top",null,null,null],"width":["300px",null,null,null],"widthUnit":["px","px","px","px"],"heightUnit":["px","px","px","px"],"height":["auto",null,null,null],"customWidth":[null,null,null,null],"customHeight":[null,null,null,null],"originalWidth":676,"originalHeight":918,"shadow":{},"border":{"borderRadius":{"values":{"topLeft":["18px"],"topRight":["18px"],"bottomRight":["18px"],"bottomLeft":["18px"]},"locked":true},"style":{},"size":{},"color":{},"styleHover":{},"sizeHover":{},"colorHover":{},"custom":{},"customEnabled":{},"preset":5},"background":{},"animation":{"duration":800,"easing":"ease","type":""},"responsive":{},"position":{"positionType":["","","",""],"positions":{"values":{}}},"csstransform":{},"csstransformClip":{},"mediaurl":"https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]","mediaid":5142,"alt":"","ratio1":[],"ratio2":[],"dynamicimage":{},"blockVisibility":{},"conditions_arr_visibility":[]} -->
<div class="wp-block-greenshift-blocks-image gspb_image gspb_image-id-gsbp-d7175d5" id="gspb_image-id-gsbp-d7175d5"><img src="https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]" data-src="" alt="" loading="lazy" width="300px" height="918"/></div>
<!-- /wp:greenshift-blocks/image -->
<!-- /wp:greenshift-blocks/howto-item -->

<!-- wp:greenshift-blocks/howto-item {"title":"How to show difference time ","blockVisibility":{},"conditions_arr_visibility":[]} -->
<!-- wp:paragraph {"placeholder":"Add content here or replace by custom block"} -->
<p>You can use Meta getter to show publish date or date of editing if you select Post Data - Published date. But it's more practical to show difference with current date so users can see how much time past from date</p>
<!-- /wp:paragraph -->

<!-- wp:greenshift-blocks/image {"id":"gsbp-028f7f3","spacing":{"margin":{"values":{},"locked":false},"padding":{"values":{},"locked":false}},"align":[null,null,null,null],"scale":[],"positionImage":[],"valign":["top",null,null,null],"width":["300px",null,null,null],"widthUnit":["px","px","px","px"],"heightUnit":["px","px","px","px"],"height":["auto",null,null,null],"customWidth":[null,null,null,null],"customHeight":[null,null,null,null],"originalWidth":658,"originalHeight":786,"shadow":{},"border":{"borderRadius":{"values":{"topLeft":["18px"],"topRight":["18px"],"bottomRight":["18px"],"bottomLeft":["18px"]},"locked":true},"style":{},"size":{},"color":{},"styleHover":{},"sizeHover":{},"colorHover":{},"custom":{},"customEnabled":{},"preset":5},"background":{},"animation":{"duration":800,"easing":"ease","type":""},"responsive":{},"position":{"positionType":["","","",""],"positions":{"values":{}}},"csstransform":{},"csstransformClip":{},"mediaurl":"https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]","mediaid":5143,"alt":"","ratio1":[],"ratio2":[],"dynamicimage":{},"blockVisibility":{},"conditions_arr_visibility":[]} -->
<div class="wp-block-greenshift-blocks-image gspb_image gspb_image-id-gsbp-028f7f3" id="gspb_image-id-gsbp-028f7f3"><img src="https://greenshiftwp.com/wp-content/uploads/2022/05/[email protected]" data-src="" alt="" loading="lazy" width="300px" height="786"/></div>
<!-- /wp:greenshift-blocks/image -->
<!-- /wp:greenshift-blocks/howto-item -->

<!-- wp:greenshift-blocks/howto-item {"title":"How to show Mail, phone links"} -->
<!-- wp:paragraph {"placeholder":"Add content here or replace by custom block"} -->
<p>Select Mail or Phone data format. Highly likely you don't want to show phone or mail directly, but you will use label like "Phone me" or "Mail Me". By default, label will be the email, but you can change this in Label - Label replacement for value</p>
<!-- /wp:paragraph -->
<!-- /wp:greenshift-blocks/howto-item -->
<!-- /wp:greenshift-blocks/howto -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
«
»