ACF Utility Shortcodes
Utility WordPress plugin providing reusable ACF-based shortcodes using best practices.
by Harsh Zavare · github.com/harshzavare/acf-utility-shortcodes · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/harshzavare/acf-utility-shortcodes/archive/refs/heads/main.zipA lightweight WordPress plugin that provides reusable, secure shortcodes for displaying Advanced Custom Fields (ACF) values using best practices.
Features
- Display ACF image fields using shortcodes
- Display ACF text, textarea, and number fields using shortcodes
- Optional
post_idsupport for cross-post usage - Clean, modular, and scalable architecture
- Follows WordPress coding standards
- Secure output with proper escaping
Requirements
- WordPress 5.0 or higher
- Advanced Custom Fields (ACF) plugin installed and active
- PHP 7.4 or higher
Installation
- Download or clone this repository.
- Upload the
acf-utility-shortcodesfolder to your/wp-content/plugins/directory. - Activate the plugin from WordPress Admin → Plugins.
- Ensure Advanced Custom Fields (ACF) is active.
Usage
1️ Display ACF Image Field
[acf_image field="hero_image"]
---
### 2 Display an image from another post:
[acf_image field="banner_image" post_id="123"]