Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/harshzavare/acf-utility-shortcodes/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A 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"]