Last active
October 1, 2016 22:42
-
-
Save goldhat/eac1fecf60c1d902aeef46193b2a9430 to your computer and use it in GitHub Desktop.
ACF Render Shortcode Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[acf-render name="first_name"] | |
Basic example rendering a text field value. Field name is "first_name". Default template (text) will be used to render. No label will be shown. | |
[acf-render name="first_name" label=1] | |
Default template (text) will be used, Field label will be shown. | |
[acf-render name="first_name" post="89"] | |
Load the value of first_name field from post ID 89. | |
[acf-render name="first_name" template="custom-text"] | |
Use a custom template "custom-text". This template must be registered first using one of the options for custom template registration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment