Hello Dear,
I am using Flexible Content Field and i also create a layout. My filed name is “testdata”.
I am using this shortcode [acf field="testdata" post_id="91"] but this shortcode is not working.
Can you tell me what is wrong there ? Can you guide me properly.
The ACF sortcode only works with simple text fields and will not work with complex fields like flex fields https://www.advancedcustomfields.com/resources/shortcode/. If you want to be able to use shortcodes for more complex fields then you’ll need to code the shortcode functions yourself. https://codex.wordpress.org/Shortcode_API
Thanks for replay me
I am using this shortcode [acf field="testdata_0_full_name" post_id="91"] then it displays 1 record which is on 0st index.
If i tried the shortcode [acf field="testdata_4_full_name" post_id="91"] then display only 3rd index. this all shortcode are display only 1 record.
Is it possible to display all the records using single shortcode?
No, it isn’t, not without building your own shortcode functions, or doing what you’re doing. Even with what you’re doing, it won’t work with anything but text based fields.