Overview

Shortcodes can be used withing 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