Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

Blocks

Block fields that are also fields of the page

1 minute to read Updated 1 week ago

The data of a block normally lives inside the block, in the page content. With Save its data in the page too on, the values are also saved as fields of the page, so you can read them anywhere with ugly_get( 'name', $post_id ), find posts by them with ugly_find(), or show them in a list.

This makes the block once per page, and only on the content of the page (core/post-content), because a field of the page is one, not one per copy.

Did this article answer your question?