Query Post Object in WP Admin

The Beta of ACF 5.8 lets you create Gutenberg blocks with custom fields. You can preview these block in the editor. Sadly, you have to be an ACF-Pro customer to use the beta. Otherwise you could try to fetch the custom fields via the REST-API utilizing this plugin: https://github.com/airesvsg/acf-to-rest-api/ Refer to this answer on how … Read more

Get Block Attributes in JSON REST API

Answering my own question. Since register_meta() actually appends to meta, not blocks, in the JSON output, I just added a new (redundant) attribute to my block using source:meta where I can manually manage outside the attributes I use to display the block. attributes: { api_coordinates: { type: ‘string’, source: ‘meta’, meta: ‘api_coordinates’, }, //… }