I have a front-end form that collects social media URLs in a sub-group. I need to display these in a CPT and so created a MetaBox Group Skin.
I can't find any documentation on the MetaBox Group Skin, so I'm assuming I'm doing something wrong - any ideas?
Here's what I've done:
Note: When I *don't* select a skin, I can see a list the URLs on the page, but they are not clickable.
Then, I create the skin:
Then go back to the CPT, select the new skin to display the Meta Box Group with, and hit save.
Result: If I try to show using the skin, nothing shows on the front end.
If I add the skin using the Elementor Shortcode, it displays the skin, but the URLs return "Array"
Note: If I add the the Meta Box group widget in the CPT and do not select a skin, the URL text does show up on the front-end, but they are not clickable. It just says "Array"
Thank you for your help.
Please notice that the helper function
rwmb_meta() or integrator supports showing raw URL (text) on the frontend as a link to click.
To show the URL field value in a button/link, you need to assign it to the attribute
href of the
<a> tag to make it clickable. Just like
<a href="<?php echo rwmb_meta( 'field_url_id' ) ?>">Button Link</a>
Hi Long - thanks for that, but I'm not totally following.
How do I assign it when creating a MetaBox group skin?
I'm specifically trying to use the Social Media Widget from Elementor
It looks like the subfield URL value is not added to the
link field of Elementor. I will inform the development team to consider supporting this case in future updates.
Meantime, please use the URL as a top field to get the link dynamically.