ACF Shortcode Display

ACF Shortcode Display Plugin

Overview

ACF Shortcode Display is a lightweight WordPress plugin that allows you to display Advanced Custom Fields (ACF) data using simple shortcodes. This plugin is designed to make it easy for users to retrieve and showcase ACF fields anywhere on their website.

Features

  • Retrieve ACF fields using a shortcode.
  • Fetch fields from posts, pages, or users.
  • Supports retrieving fields for the current logged-in user.
  • Works seamlessly with both free and PRO versions of ACF.

Installation

  1. Download the plugin ZIP file.
  2. Navigate to Plugins > Add New in your WordPress admin panel.
  3. Click Upload Plugin and select the ZIP file.
  4. Install and activate the plugin.

Usage

To display an ACF field, use the following shortcode:

Display a field from the current post/page

[acf_display field="your_field_name"]

Display a field from a specific post/page

[acf_display field="your_field_name" post_id="123"]

Replace 123 with the actual post ID.

Display a field from the current logged-in user

[acf_display field="your_field_name" user_id="current"]

Display a field from a specific user

[acf_display field="your_field_name" user_id="5"]

Replace 5 with the actual user ID.

Troubleshooting

  • Ensure that ACF is installed and activated.
  • Double-check that the field name is correct.
  • If fetching user data, ensure that the user has the required ACF field value.

Support

For more details and support, visit our Contact Us page.