Shortcode

Overview

Shortcodes can be used within a WYGIWYG to display another field’s value. To learn more about shortcodes, click here.

Requirements

  • ACF v3.1.1 or above

Usage

Place the shortcode marker with the desired field within your wysiwyg content. This shortcode runs the same as the the_field() function.

[acf field="field_name" post_id="123"]

Example

This is a story about a boy named [acf field="name"]. He is [acf field="age"] years old.

Limitations

  • Only works for simple text based values

 

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.