PHPackages                             lachlanarthur/sage8-acf-wp-blocks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lachlanarthur/sage8-acf-wp-blocks

ActiveWordpress-plugin

lachlanarthur/sage8-acf-wp-blocks
=================================

Create Gutenberg blocks from Sage 8 templates and ACF fields.

v1.0(5y ago)18.0k↓100%MITPHPPHP &gt;=7.0

Since Feb 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/LachlanArthur/sage8-acf-wp-blocks)[ Packagist](https://packagist.org/packages/lachlanarthur/sage8-acf-wp-blocks)[ Docs](https://github.com/LachlanArthur/sage8-acf-wp-blocks)[ RSS](/packages/lachlanarthur-sage8-acf-wp-blocks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

Sage 8 ACF Gutenberg Blocks
===========================

[](#sage-8-acf-gutenberg-blocks)

Generate ACF Gutenberg blocks just by adding templates to your Sage 8 theme. This package is forked from the [Sage 9 version](https://github.com/MWDelaney/sage-acf-wp-blocks) by [MWDelaney](https://github.com/MWDelaney) which is based heavily on [this article](https://medium.com/nicooprat/acf-blocks-avec-gutenberg-et-sage-d8c20dab6270) by [nicoprat](https://github.com/nicooprat).

Installation
------------

[](#installation)

Run the following in your Sage 8-based theme directory:

```
composer require "lachlanarthur/sage8-acf-wp-blocks"
```

Requirements
------------

[](#requirements)

- Wordpress 5+
- Advanced Custom Fields 5.8+
- Theme based on Sage 8 (See [the original](https://github.com/MWDelaney/sage-acf-wp-blocks) for Sage 9)

Creating blocks
---------------

[](#creating-blocks)

Add templates to `your-theme/wp-blocks` which get and use ACF data. Each template requires a metadata comment block with some data in it:

```
