First of all, Great plugin guys!
I would like to know if it is possible to display Field Group in a shortcode.
I know I can use [acf field="field_name"] but can I do [acf field="field_group_name"] or something like that?
Thank you!
Hi @idomskt
No there’s no such shortcode I’m afraid. You’ll have to place a shortcode for each field in that field group. I honestly didn’t even know there where a shortcode for displaying ACF values (and I’ve been using it for many years).. haha.
If you’re not afraid of doing a bit of coding yourself there’s a way to get all of the ACF meta fields + values associated with a post/page with PHP:
http://www.advancedcustomfields.com/resources/get_field_objects/
Hello,
Try putting [acf field="YOUR GROUP NAME"] to show all the content of the group separated by commas.
I have not found a way to show each Field separately.
Does anyone have any ideas?
It doesn’t seem to work with mine… I tried using this [acf field="YOUR GROUP NAME"] and it doesn’t shows up.. anyone here can help me? thanks
You can do this with the Custom Content Shortcode Plugin.
https://wordpress.org/plugins/custom-content-shortcode/
It works great with ACF.
For this it would look like:
[repeater acf_group_field_name]
[field acf_sub_field_name]
[/repeater]
this is the right solution!… thanks!! it worked like charm!