Ably Custom Icon Field for ACF
v2.0.7ablyperu · 2026年8月20日 上架
Ably Custom Icon Field for ACF adds a visual custom field for selecting uploaded icon classes in Advanced Custom Fields (ACF).
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 476
- 最近更新
- 2026年10月6日
需要 WordPress 5.0+已测试到 7.0.9PHP 7.4+
贡献者
Ably Custom Icon Field for ACF adds a custom field type for Advanced Custom Fields (ACF) with a visual icon picker:
- Visual grid: Display imported icons in a searchable modal.
- Live search: Filter icons by label or CSS class.
- Multiple collections: Import, review, and remove multiple IcoMoon ZIP collections.
- Safe field values: Validate selected icon classes against the available icon list.
External icon fonts
External icon libraries are optional. The plugin does not bundle third-party icon fonts. Administrators may provide authorized CDN URLs in the plugin settings and are responsible for complying with the applicable license terms.
Usage
- Go to ACF > Field Groups.
- Add a field and select the “Ab Icon” field type.
- Choose the return format: CSS class or HTML.
In templates
Class format:
php
<?php $icon = get_field('my_icon'); ?>
<i class="<?php echo esc_attr($icon); ?>"></i>