Skip to content
Sign in

Mudrava Icon Field for ACF with Lucide

A professional ACF custom field type for selecting Lucide icons and Simple Icons brand logos with a visual picker.

Not scanned yet WordPress plugin 30 installs

Install in

No install steps yet

Follow the steps on the source page.

Mudrava Icon Field for ACF with Lucide adds a new field type to Advanced Custom Fields (ACF) that allows users to select icons from the Lucide icon library and brand logos from Simple Icons through an intuitive visual picker. The selected icon value is stored in the database, making it lightweight and flexible for frontend rendering.

Requirements: This plugin requires Advanced Custom Fields (ACF) version 6.0 or higher to function.

Features

  • Visual Icon Picker – Browse and select from 2,102 Lucide icons and 3,472 brand logos
  • Brand Icons – Brand logos use Simple Icons values such as simple:facebook
  • Custom Icon Library – Upload your own SVG icons under Settings, sanitized on upload and addressable as custom:<name>
  • Shortcode & Helper – [lucide_icon] shortcode plus mudrava_get_lucide_icon() helper for templates
  • Smart Search – Filter icons by name or tags instantly
  • Performant – Lazy icon catalog over a local REST endpoint, byte-offset sprite lookups, inline frontend SVG output, paginated grid (100 icons per page)
  • Native ACF Look – Seamlessly integrates with ACF’s design language
  • Responsive – Works on all screen sizes
  • Accessible – Keyboard navigation support
  • Flexible Output – Return icon value or full SVG markup
  • No External Requests – All icon data is stored locally

Usage

After installing both ACF and this plugin:

  1. Go to Custom Fields > Add New
  2. Add a new field and select Lucide Icon as the field type
  3. Configure the field settings (default value, return format, etc.)
  4. Save your field group

Template Examples

Get Icon Name:

<?php
$icon_name = get_field('your_field_name');
echo esc_html($icon_name); // Returns: 'rocket'
?>

Get SVG Markup (with return_format = ‘svg’):

<?php
$icon_svg = get_field('your_field_name');
echo $icon_svg; // Returns: <svg>...</svg>
?>

Using the Helper Function:

<?php
// Basic usage
echo mudrava_get_lucide_icon('rocket');

// With custom attributes
echo mudrava_get_lucide_icon('rocket', [
    'class'  => 'my-custom-class',
    'width'  => 32,
    'height' => 32,
    'stroke' => '#ff0000',
    'title'  => 'Launch', // accessible title
    'mode'   => 'sprite', // 'inline' (default) or 'sprite'
]);
?>

Shortcode

[lucide_icon name="rocket" size="32" title="Launch"]

Custom icons uploaded under Settings Custom Icons are addressed as custom:<name>,
for example [lucide_icon name="custom:my-logo" title="My Logo"] or
mudrava_get_lucide_icon( ‘custom:my-logo’ ).

About Custom SVG Icons

Site owners can upload plain SVG icons under Settings Custom Icons.
Uploads are parsed with DOMDocument (no network access) and reduced to the
same element and attribute allowlist as the bundled sets via wp_kses(), so
scripts, styles, embedded images and unsupported elements never reach storage.
Custom icons are stored as standalone files in the uploads directory, appear
in the picker search, and render with their own colors instead of a forced
currentColor tint.

About Lucide Icons

Lucide is a modern, open-source icon library with 1,700+ carefully crafted icons. The bundled Lucide assets are from lucide-static 1.38.0 and are licensed under ISC.

About Brand Icons

Brand logos are bundled separately from Simple Icons 16.29.0 and are saved with the simple: prefix, for example simple:facebook.

Simple Icons is distributed under CC0-1.0, but individual brand logos and trademarks may still be governed by each brand owner’s guidelines and permissions. Check the relevant brand guidelines before using a logo in production. Source and guideline URLs from Simple Icons are bundled in data/brand-icons-meta.json.

Privacy

Data Collection:

This plugin does not collect, store, or transmit any user data or personal information.

External Requests:

This plugin does not make any external HTTP requests. All icon data is stored locally and served from your WordPress installation.

Cookies:

This plugin does not use cookies.

Third-Party Services:

This plugin does not integrate with or send data to any third-party services.

Written by Joobi from the project's own listing. See the source page

acfadvanced custom fieldsicon pickerlucideSVG
23 Nov 2026
Version 1.7.0 released. Not scanned yet.

1.7.0 – 2026-11-23

Added

  • Updated bundled assets to lucide-static 1.78.0 (2102 Lucide symbols, 3472 brand logos; 47 net new icons, including the arrows-/carets-/chevrons-*-axis resize families, the bot-* family, cinema, chocolate-bar, doghouse, jacket, warehouse-waves, nigerian-naira, graph-path, diagram-sankey and folder-network) and simple-icons 16.38.1 (brand artwork refresh: updated Marko and Netlify colors and paths).
  • Added a complete Georgian translation, bringing the bundled set to 28 languages. The translation follows the established Georgian terminology of WordPress core.

Changed

  • Extended the compatibility alias layer for icons renamed or redrawn upstream between 1.73.0 and 1.78.0: fold-horizontal, fold-vertical, unfold-horizontal and unfold-vertical now resolve to the arrows-*-axis-dashed family, triangles-centerline-dashed-* to carets-to-axis-dashed-* and square-centerline-dashed-* to square-axis-dashed-*, all verified as the same rendered geometry. The existing flip-horizontal-2 and flip-vertical-2 aliases were repointed to the renamed carets-to-axis-dashed-* successors. Stored values are never rewritten.

Tested

  • Verified compatibility with WordPress 7.1.5 on PHP 8.5: activation, icon picker search and pagination, REST catalog, [lucide_icon] shortcode, custom icon upload, and rendering of all 1.78.0 renames through the alias layer.

1.6.0 – 2026-11-16

Added

  • Updated bundled assets to lucide-static 1.73.0 (2055 Lucide symbols, 3472 brand logos; 34 new icons, including the stroke-line-cap-* and stroke-line-join-* editor glyphs, asterism, cap, cheese, graph-ring, mound-shovel, route-arrow-right, text-pen, question-mark, exclamation-mark and the new *-enter/*-exit arrow family) and simple-icons 16.38.0 (+2 brand logos).

Changed

  • Extended the compatibility alias layer for icons renamed upstream between 1.70.0 and 1.73.0 (*-arrow-out-* became *-arrow-*-exit): circle-arrow-out-down-left, circle-arrow-out-down-right, circle-arrow-out-up-left, circle-arrow-out-up-right, square-arrow-out-down-left, square-arrow-out-down-right, square-arrow-out-up-left and square-arrow-out-up-right now resolve to their renamed twins, which are byte-identical artwork. Stored values are never rewritten.

Tested

  • Verified compatibility with WordPress 7.1.4 on PHP 8.5: activation, icon picker search and pagination, REST catalog, [lucide_icon] shortcode, custom icon upload, and rendering of all 1.73.0 renames through the alias layer.

1.5.1 – 2026-11-16

Added

  • 16 complete new translations, bringing the bundled set to 27 locales: Russian, Swedish, Catalan, Czech, Danish, Greek, Galician, Croatian, Hungarian, Indonesian, Norwegian Bokmål, Portuguese (Portugal), Romanian, Slovak, Slovenian and Serbian. Each translation uses the established WordPress core terminology of its language, and Swedish adopts the approved community strings from translate.wordpress.org as its base.

Changed

  • Completed the existing 11 bundled catalogs: every string added in 1.3 to 1.5 (custom icon library, unknown-value handling, picker status labels) is now translated in all shipped languages instead of falling back to English.

1.5.0 – 2026-11-09

Added

  • Updated bundled assets to lucide-static 1.70.0 (2029 Lucide symbols, 3470 brand logos; 14 new icons, including the *-exclamation-point family, diagram-flow-horizontal/diagram-flow-vertical, square-dashed-search, package-question-mark, moped and mango) and simple-icons 16.37.0 (+3 brand logos).

Changed

  • Extended the compatibility alias layer for icons renamed upstream between 1.66.0 and 1.70.0 (*-alert and *-warning became *-exclamation-point): badge-alert, battery-warning, book-alert, circle-alert, clock-alert, cloud-alert, mail-warning, message-circle-warning, message-square-warning, octagon-alert, search-alert, shield-alert and triangle-alert now resolve to their renamed twins, which are byte-identical artwork. Stored values are never rewritten.

Tested

  • Verified compatibility with WordPress 7.1.4 on PHP 8.5: activation, icon picker search and pagination, REST catalog, [lucide_icon] shortcode, custom icon upload, and rendering of all 1.70.0 renames through the alias layer.

1.4.0 – 2026-11-02

Added

  • Updated bundled assets to lucide-static 1.66.0 (2015 Lucide symbols, 3467 brand logos; 121 new icons, including the full alphabet glyph sets letter-*, circle-letter-*, square-letter-* and the expanded database and archive families). simple-icons 16.36.0 is unchanged, it was already current.

Changed

  • Extended the compatibility alias layer for icons renamed upstream between 1.61.0 and 1.66.0: archive-restore, bold, circle-parking, circle-parking-off, copyright, heading, square-m, square-parking and square-parking-off now resolve to their current replacements (archive-arrow-up, letter-b, circle-letter-p, circle-letter-p-off, circle-letter-c, letter-h, square-letter-m, square-letter-p, square-letter-p-off). Stored values are never rewritten.

Tested

  • Verified compatibility with WordPress 7.1.4 on PHP 8.5: activation, icon picker search and pagination, REST catalog, [lucide_icon] shortcode, custom icon upload, and rendering of the 1.66.0 renames through the alias layer.

1.3.0 – 2026-10-26

Added

  • Updated bundled assets to lucide-static 1.61.0 and simple-icons 16.36.0 (1903 Lucide symbols, 3467 brand logos).

Changed

  • Extended the compatibility alias layer for icons renamed upstream since 1.38.0: album, book-marked, building-2, flip-horizontal-2, flip-vertical-2, music, music-2, music-3, music-4 and trash-2 now resolve to their current replacements. Stored values are never rewritten.

1.2.1 – 2026-09-18

  • Fixed: the admin screens no longer fatal when the plugin is active but ACF is deactivated – the custom-icons capability lookup now falls back to manage_options instead of calling acf_get_setting() unconditionally.
  • Tested: verified full compatibility with WordPress 7.1.1 – activation, Custom Icons settings page, REST catalog and [lucide_icon] shortcode smoke-tested on PHP 8.5.

1.2.0 – 2026-08-31

  • Update bundled assets to lucide-static 1.38.0 and simple-icons 16.29.0.
  • Replace the 600 KB admin payload with a lazy REST icon catalog.
  • Replace regex sprite extraction with byte-offset index lookups (no full-file scans per render).
  • Render icons as inline SVG by default and support a sprite mode with a footer sprite sheet.
  • Add a compatibility alias layer (data/compat-aliases.json) for icon names removed upstream; saved values are never rewritten.
  • Unknown icon values no longer block saving by default; they show a dismissible admin notice. A per-field “Unknown Icon Values” setting (warn/error) controls strict mode.
  • Harden SVG handling with a build-time allowlist (data/allowed-svg.json) and runtime wp_kses sanitization.
  • Add a custom SVG icon library: upload icons under Settings, sanitized against the same allowlist and stored as standalone files; addressable as custom:<name> in the field, picker, shortcode and helper.
  • Add the [lucide_icon] shortcode with mudrava_lucide_icon_svg_args and mudrava_lucide_icon_svg filters.
  • Bundle minified sprite assets and add scripted asset pipeline checks.
  • Add PHPUnit unit tests and PHPCS/ESLint configs.

1.1.0 – 2026-04-30

  • Update bundled Lucide assets to lucide-static 1.14.0.
  • Add a separate Simple Icons 16.18.0 brand icon bundle with 3,400+ brand logos.
  • Save new brand icon selections as simple:<slug>.
  • Resolve legacy unprefixed social icon values against Simple Icons when Lucide no longer contains them.
  • Add third-party notices and brand-logo usage guidance.

1.0.1 – 2026-04-30

  • Render frontend helper output as inline SVG instead of external sprite references.
  • Avoid stale transient icon lists after sprite updates.
  • Improve keyboard focus and dropdown stacking in ACF Repeater/Flexible Content contexts.
  • Validate saved icon names against the bundled local sprite.
  • Clarify ACF 6.0+ requirement and Lucide v1 brand icon behavior.

1.0.0 – 2026-03-07

  • Initial release
  • Visual icon picker with 1,500+ Lucide icons
  • Real-time search and filter functionality
  • Icon name or SVG return format options
  • Helper function for template use
  • Allow null option for optional icon selection
  • Default value configuration
  • Custom placeholder text setting
  • Keyboard navigation support
  • RTL language support
  • Responsive grid layout
  • Native ACF styling integration
  • Local sprite file (no external requests)
  • Bundled icon metadata for instant search
  • Full compatibility with ACF Repeater and Flexible Content fields
19 Mar 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)