WP Manifestindependent plugin directory
manifest / editor / acf-accordion-block

ACF Accordion Block

An accordion block with ACF fields.

by Damon Cook · github.com/colorful-tones/acf-accordion-block

8stars
11release downloads
≈10active sites
2forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/colorful-tones/acf-accordion-block/releases/download/v1.0.0/acf-accordion-block.zip

Readme

Accordion block using ACF PRO fields

An accessible accordion block that uses ACF PRO fields. The interactivity of the accordion comes from 10up's Component Library.

Accessibility (a11y)

ARIA is added with JavaScript. The recommended markup allows for avoiding keyboard trap, which can often trip of keyboard navigation and other input devices.

If JavaScript is enabled then the accordion items are all expanded and accessible by default.

Also, there are several handy key binding to enable easier navigation, e.g. home, end, up and down arrow.

How to use?

  1. Download the latest release or direct (.zip).
  2. Install ACF Pro plugin and activate.
  3. Place the download in your site's wp-content/plugins
  4. Activate ACF Accordion Block.
  5. Create a new page, post and add the Accordion block.

Demonstration of Accordion block with the upcoming Twenty Twenty-Three theme. Gif demonstrating accordion block use

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.0.2 Oct 13, 2022
v1.0.1 Oct 7, 2022
v1.0.0 Oct 6, 2022 acf-accordion-block.zip 11

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.