All Projects → benplum → ACF-Auto-Blocks

benplum / ACF-Auto-Blocks

Licence: other
Auto-register ACF field groups as blocks in the new editor (Gutenberg).

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ACF-Auto-Blocks

block-loader
Automatic WordPress Gutenberg block loader based on template files
Stars: ✭ 21 (-25%)
Mutual labels:  acf, gutenberg
aino-theme
A Gutenberg-ready WordPress theme.
Stars: ✭ 107 (+282.14%)
Mutual labels:  blocks, gutenberg
aino-blocks
Aino blocks are a collection of Gutenberg editor blocks for page building in WordPress.
Stars: ✭ 57 (+103.57%)
Mutual labels:  blocks, gutenberg
editor-blocks
A unique collection of Gutenberg blocks for the new WordPress editor.
Stars: ✭ 28 (+0%)
Mutual labels:  blocks, gutenberg
poet
Configuration-based post type, taxonomy, block category, and block registration for Sage 10.
Stars: ✭ 124 (+342.86%)
Mutual labels:  blocks, gutenberg
ObjCUI
使用OC来写声明氏UI
Stars: ✭ 27 (-3.57%)
Mutual labels:  blocks
wagtailcommonblocks
Common StreamField blocks for Wagtail
Stars: ✭ 40 (+42.86%)
Mutual labels:  blocks
codemirror-blocks
A library for building language-specific, CodeMirror-friendly editors that are a11y-friendly.
Stars: ✭ 22 (-21.43%)
Mutual labels:  blocks
MorphologicalPriorsForWordEmbeddings
Code for EMNLP 2016 paper: Morphological Priors for Probabilistic Word Embeddings
Stars: ✭ 53 (+89.29%)
Mutual labels:  blocks
fullsiteediting
fullsiteediting.com/
Stars: ✭ 187 (+567.86%)
Mutual labels:  gutenberg
skeleton-plugin-blocks-gutenberg
No description or website provided.
Stars: ✭ 15 (-46.43%)
Mutual labels:  gutenberg
tailwind-ui-components
Free Tailwind CSS UI Components - Crafted for modern websites, landing pages and web apps. TailGrids Core is free and open-source so, feel free to use with your personal or commercial projects. If you would like to show your support and love, don't forget to give us a star 🌟
Stars: ✭ 49 (+75%)
Mutual labels:  blocks
wp-rest-blocks
Add gutenberg blocks data into post / page / widget REST API endpoints.
Stars: ✭ 86 (+207.14%)
Mutual labels:  blocks
acf-move-wp-editor
This is a simple ACF Field that moves the WordPress content editor of a post or page to the location of this field.
Stars: ✭ 32 (+14.29%)
Mutual labels:  acf
slack-block-kit
DEPRECATED: Use https://github.com/slack-php/slack-php-block-kit instead
Stars: ✭ 30 (+7.14%)
Mutual labels:  blocks
AWESOME-LDraw
LDraw — awesome software, file format, parts library and model repository (3D models of LEGO® and LEGO-compatible bricks)
Stars: ✭ 30 (+7.14%)
Mutual labels:  blocks
StrapPress
Bootstrap 4 WordPress Starter Theme that is Gutenberg Compatible
Stars: ✭ 55 (+96.43%)
Mutual labels:  gutenberg
gfm-code-blocks
Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.
Stars: ✭ 20 (-28.57%)
Mutual labels:  blocks
smart-garden-ornaments
The smart garden ornaments project! 🦩🌱🤖
Stars: ✭ 20 (-28.57%)
Mutual labels:  blocks
slackblocks
🎲 Python API for Building Messages Using the Slack Block Kit API
Stars: ✭ 32 (+14.29%)
Mutual labels:  blocks

ACF Auto Blocks

Auto-register ACF field groups as blocks in the new editor (Gutenberg).

Requires ACF Pro 5.8-beta3 or later. Read more about ACF Blocks for Gutenberg.

Rendering Blocks

Templates

Auto Blocks will use the block key as the block template file name. For example, a block with a key of flexible-callout will require a template file named flexible-callout.php. Auto Blocks will look for block templates in an acf-blocks directory in the root of your theme. You can set a different path using the acf/auto_blocks/directory filter.

function my_acf_blocks_directory( $path ) {
  $path = get_stylesheet_directory() . '/templates/my-blocks';

  return $path;
}
add_filter( 'acf/auto_blocks/directory', 'my_acf_blocks_directory' );

Data

Auto Blocks will localize two arrays for use in the template file: $block, containing the block settings, and $data, containing the field values.

<div id="<?php echo $block['id']; ?>">
  <h2><?php echo $data['title']; ?></h2>
</div>

Converting Flexible Layouts

Auto Blocks will also assist in converting flexible layout 'page builders' into block-ready field groups. Look for the new 'Convert to Block' action in the layout settings when editing a flexible layout.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].