Home › Forums › General Issues › Very basic shortcode issue with Divi › Reply To: Very basic shortcode issue with Divi
For anyone that stumbles across this in future…
The shortcode alone is not enough, you also need to specify where the information is stored by adding the post/page id number
[acf field="field_name" post_id="123"]
Set up a field group that displays only on one page, ‘shortcodes’ and make a note of the ‘shortcodes’ page id number. Add fields as needed and note their shortcodes.
You can then paste the shortcode above onto any page in a text module and it will pull the data and display it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
❓Ever wondered when and why ACF uses JSON instead of the database? Check out our summary of the most recent session of ACF Chat Friday for the answer, and make sure to register for the next session.— Advanced Custom Fields (@wp_acf) February 23, 2023
© 2023 Advanced Custom Fields.