Support › General › How to output a shortcode?
Hi there - I'm starting a new thread since other was marked as solved without detailing how.
I need to add a shortcode to a CPT in the backend using a custom field that will then show on the front end. Is this possible?
Well, part of the solution can also be found in https://support.metabox.io/topic/output-shortcode-from-a-custom-field/.
I can however, with posts in this thread and in the before mentioned thread, got it to work as expected.
I have the same problem and the rendering option does not work.
I have a custom field that contains a shortcode but it does not render the shortcode. Can you fix this?
Which is the field type of the custom field? And how do you display the field value? You can use the field wysiwyg to render the shortcode inside the field content. Read more on the documentation
I have tried all possible fields.
With ACF it is easier, it can render the shortcode correctly but MB cannot.
My process is as follows:
I create a custom field for post type "post" with name shortcode. When I customize a template with Oxygen Builder, I include the custom field.
When viewing an example it only displays the shortcode as follows [shortcode] in text format without being able to render it.
In the builder, you can use the helper shortcode [rwmb_meta] to render the shortcode. For example, field WYSIWYG