PHPackages                             orditeck/sage9-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. [Templating &amp; Views](/categories/templating)
4. /
5. orditeck/sage9-acf-wp-blocks

ActiveLibrary[Templating &amp; Views](/categories/templating)

orditeck/sage9-acf-wp-blocks
============================

Create Gutenberg blocks from Sage blade templates and ACF fields.

0.5(6y ago)519.4k↓100%2[1 issues](https://github.com/orditeck/sage9-acf-wp-blocks/issues)MITPHPPHP &gt;=5.4

Since Feb 8Pushed 6y agoCompare

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

READMEChangelog (1)DependenciesVersions (9)Used By (0)

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

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

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

This is a fork of [MWDelaney/sage-acf-wp-blocks](https://github.com/MWDelaney/sage-acf-wp-blocks) which seemed no longer maintained when I needed to include it in my project.

**PR welcomed!**

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

[](#installation)

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

```
composer require "orditeck/sage9-acf-wp-blocks"
```

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

[](#creating-blocks)

Add blade 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:
--}}
```

### Example block template

[](#example-block-template)

```
{{--
  Title: Testimonial
  Description: Customer testimonial
  Category: formatting
  Icon: admin-comments
  Keywords: testimonial quote
  Mode: edit
  Align: left
  PostTypes: page post
  SupportsAlign: left right
  SupportsMode: false
  SupportsMultiple: false
--}}

    {{ get_field('testimonial') }}

      {{ get_field('author') }}

  [data-{{$block['id']}}] {
    background: {{ get_field('background_color') }};
    color: {{ get_field('text_color') }};
  }

```

Creating ACF fields
-------------------

[](#creating-acf-fields)

Once a block is created you'll be able to assign ACF fields to it using the standard Custom Fields interface in WordPress. We recommend using [sage-advanced-custom-fields](https://github.com/MWDelaney/sage-advanced-custom-fields) to keep your ACF fields in version control with Sage.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~40 days

Total

8

Last Release

2479d ago

PHP version history (2 changes)0.1PHP &gt;=5.3.2

0.4.3PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/20cee53710841d8c0f9c72470ab9fe243b5e81790b4c8f24bc80040d0de4b63a?d=identicon)[orditeck](/maintainers/orditeck)

---

Top Contributors

[![MWDelaney](https://avatars.githubusercontent.com/u/2457670?v=4)](https://github.com/MWDelaney "MWDelaney (22 commits)")[![bebjakub](https://avatars.githubusercontent.com/u/10927960?v=4)](https://github.com/bebjakub "bebjakub (2 commits)")[![palmiak](https://avatars.githubusercontent.com/u/2342458?v=4)](https://github.com/palmiak "palmiak (2 commits)")[![robyurkowski](https://avatars.githubusercontent.com/u/230379?v=4)](https://github.com/robyurkowski "robyurkowski (1 commits)")

---

Tags

wordpressadvanced custom fieldsgutenberg

### Embed Badge

![Health badge](/badges/orditeck-sage9-acf-wp-blocks/health.svg)

```
[![Health](https://phpackages.com/badges/orditeck-sage9-acf-wp-blocks/health.svg)](https://phpackages.com/packages/orditeck-sage9-acf-wp-blocks)
```

###  Alternatives

[palmiak/timber-acf-wp-blocks

Create Gutenberg blocks from Twig templates and ACF fields.

24872.5k1](/packages/palmiak-timber-acf-wp-blocks)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[mwdelaney/sage-acf-gutenberg-blocks

Create Gutenberg blocks from Sage blade templates and ACF fields.

354359.9k1](/packages/mwdelaney-sage-acf-gutenberg-blocks)[gamajo/template-loader

A class for your WordPress plugin, to allow loading template parts with fallback through the child theme &gt; parent theme &gt; plugin

29647.0k5](/packages/gamajo-template-loader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
