palmiak / timber-acf-wp-blocks-plugin
Create Gutenberg blocks from Twig templates and ACF fields.
Installs: 3 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=5.6
- composer/installers: ^1.9
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-22 10:00:58 UTC
README
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: #}