Open Icons for ACF (Lite) adds a custom field type to Advanced Custom Fields (ACF) that lets you select and display SVG icons from the Heroicons library. All 324 icons are bundled with the plugin — no external downloads required.
Features:
get_openicon() helper function for displaying iconsHow it works:
get_openicon() functionDisplay icons in your theme:
php
<?php
$icon = get_field('your_icon_field');
get_openicon($icon, ['size' => 24, 'class' => 'my-icon']);
?>
Want more icons?
Open Icons for ACF Premium unlocks:
The src/ directory contains the uncompiled React/TypeScript source code for the admin UI components.
Source code is available on GitHub:
https://github.com/davidosull/open-icons-acf-lite.git
To build from source:
npm installnpm run buildThis will bundle the Heroicons SVGs into assets/icons/ and compile the TypeScript/React source into assets/build/.