palmiak/timber-acf-wp-blocks-plugin

Create Gutenberg blocks from Twig templates and ACF fields.

1.15.1 2021-01-22 00:47 UTC

This package is auto-updated.

Last update: 2021-02-22 01:39:56 UTC


README

timber-wp-acf-blocks.png

Timber ACF WP Blocks

Generate ACF Gutenberg blocks just by adding templates to your Timber theme. This package is based heavily on this article by nicoprat and the plugin by MWDelaney.

Complete documentation

Read the complete documentation

Contributors

This plugin is build with help of contributors: roylodder

Creating blocks

Add twig templates to views/blocks which get and use ACF data. Each template requires a comment block with some data in it:

{#
  Title:
  Description:
  Category:
  Icon:
  Keywords:
  Mode:
  Align:
  PostTypes:
  SupportsAlign:
  SupportsMode:
  SupportsMultiple:
  SupportsAnchor:
  EnqueueStyle:
  EnqueueScript:
  EnqueueAssets:
#}