How to enable shortcodes in a custom post type?
How can I enable shortcodes on a custom post type that doesn’t use
In the template file it uses
<?php echo nl2br( $post->post_content ); ?>
to get the content from the backend like any other post or page would.
I have tried using
<?php echo do_shortcode(get_post_field('post_content', $postid)); ?>
which works but the shortcode itself is still displaying for example:
displays above the gallery photos.