1

I've installed Visual Composer on my own template. The thing is that is not rendering all it's shortcodes.

<?php  $post = get_post( $post->ID );
echo $post->post_content; ?>

Is that code wrong? Am I missing some includes or didn't run some functions?

1

Issue solved:

I had to do_shortcode to post_content.

  • Please accept your answer so that this question can be marked as resolved. Thanks. – Andy Macaulay-Brook Aug 9 '16 at 21:03
  • Also simple solution: Replace "<?php echo $post->post_content; ?>" with "<?php echo apply_filters('the_content', $post->post_content); ?>" – Tritof Mar 21 '17 at 17:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.