Meta Field Block


The plugin allows developers/users to display a meta field as a block on the frontend, supporting ACF fields. It can be nested inside a parent block that has ‘postId’, ‘postType’ context such as ‘Query Block’ or stand-alone.

Advanced use cases

  1. How to change the output of the block?
  2. How to display a complex value like a dynamic field that depends on multiple meta fields?

If this plugin is useful for you, please do a quick review and rate it on to help it spread to more people. I would very much appreciate it.

Please check out my other plugins if you’re interested:

  • Content Blocks Builder – A tool to create blocks, patterns or variations easily for your site directly on the Block Editor.
  • Block Enhancements – A plugin to add more useful features to blocks likes: icons, box-shadow, transform…
  • Icon separator – A tiny block just like the core/separator block but with the ability to add an icon to it.
  • SVG Block – A block to insert inline SVG images easily and safely. It also bundles with more than 3000 icons and some common non-rectangular dividers.
  • Counting Number Block – A block to display a number that has the number-counting effect.
  • Breadcrumb Block – A simple breadcrumb trail block that supports JSON-LD structured data.
  • Better Youtube Embed Block – Embed Youtube videos without slowing down your site.

The plugin is developed using @wordpress/create-block.


  • Block's settings


This plugin provides 1 block.

  • Meta Field Block Display a meta field as a block on frontend, supporting ACF fields.


  1. Upload the plugin files to the /wp-content/plugins/meta-field-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress


Who needs this plugin?

This plugin is created for developers, but end users can also use it.

Does it support inputting and saving meta value?

No, It does not. It only displays meta fields as blocks.

Does it support all types of meta fields?

Only simple types such as string, integer, or number can be used directly. Other complex types such as object, array need to be converted to HTML markup strings.

Does it support all types of ACF fields?

All basic field types that can be retrieved value by the get_field or the_field functions. Some complex field types like image, link, page_link, post_object, relationship, and taxonomy are also supported.

Does it include some style for the meta field?

The block does not provide any CSS style for the meta field value. But it does provide a basic display inline style from the settings.

Does it support other meta field frameworks?

Yes, it does as long as those meta fields can be accessed value via REST API.


ဇန်နဝါရီ 24၊ 2023 1 reply
Easy to use with standard WordPress metadata. I used this nested inside a Query Block to display content from a custom post type. I think that you should mention the availability of the filter 'meta_field_block_get_block_content' in the Description of the plugin because the ability to modify the metadata before presentation is really useful. I had a similar requirement to format a date as given in your Support answer to "Format a Date Value" and that approach worked really well. Installing this block meant I could use a standard Query Loop instead of spending hours developing a custom block. Highly recommended!
နိုဝင်ဘာ 28၊ 2022 1 reply
Thank you:-)
နိုဝင်ဘာ 8၊ 2022 1 reply
Fixed a long-standing issue, as I tried everything possible, shortcodes, template tags, JavaScript Fetch API and more 😀
စက်တင်ဘာ 15၊ 2022 1 reply
This plugin is excellent. It solves a single problem and does it well. Now I can add fields created with Advanced Custom Fields to query loop blocks! This is going to save my clients so much backend development time.
စက်တင်ဘာ 6၊ 2022 1 reply
Does just the simple job I needed: outputs custom postmeta in a block. And even enables to change the tag under Advanced settings.
Read all 13 reviews

Contributors & Developers

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


“Meta Field Block” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Meta Field Block” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Release Date – 15 Sep 2022

  • FIX – Change the textdomain to the plugin slug


Release Date – 10 Sep 2022

  • FIX – Wrong handle for wp_set_script_translations. Thanks to Loïc Antignac (@webaxones)


Release Date – 07 Sep 2022

  • FIX – Add a null check for meta fields value before accessing it’s property


Release Date – 25 Jun 2022

  • DEV – Add an option to show the block’s outline on the Editor


Release Date – 21 Jun 2022

  • DEV – Display the placeholder text on the template context


Release Date – 02 May 2022

  • DEV – Support displaying some field types for ACF such as image, link, page_link, post_object, relationship, taxonomy


Release Date – 30 April 2022

  • DEV – Add supports for borders, and full typography options


Release Date – 28 April 2022

  • DEV – Add the title to block registration in JS
  • REFACTOR source code


Release Date – 23 March 2022

  • FIX – The block does not work in the site editor.


Release Date – 22 February 2022