Support › Meta Box AIO › Shortcodes not workingResolved
I'm really trying but I find Meta Box just so confusing to use.
Since Meta Box is not integrated with Gutenberg (I'm using Kadence theme/blocks), I'm trying to output my CF using shortcodes but it doesn't seem to work, so I must be missing something.
This is what I have so far:
Custom Post Type: Hobbies
Custom Field Group="Hobbies" set to "cloneable"
Subfields="Hobby Name," "Hobby Description," "hobby image"
Settings- Post Type = Page
Shortcode I used: [rwmb_meta id="hobby_name"]
I filled out a hobby called "baking" for example. I filled out the fields on the page BUT when I entered the shortcode, nothing outputs to the frontend.
I also tried setting this as a custom post type w/the settings as:
Post Type = "Hobby" and "page" This doesn't output to front page either
What am I missing?
Thank you for reaching out.
If you are using the field type group and sub-fields inside, the shortcode will not help you to output the value. We need to loop through the group value to access the sub-field value, please follow this documentation for more details https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values.
Regarding Meta Box and Gutenberg, we have an extension MB Blocks to help users create blocks easier. Have you tried to use it?
Sorry, didn't see that you replied. I will try this, thank you.