I'm trying to integrate Visual Composer with a WooCommerce Multivendor site to enable vendors to design landing pages for themselves. Everything works fine until I'm trying to show a page created by Visual Composer inside the vendor store front template. Here is an example of the page I'm trying to extend: http://wcfmmp.wcfmdemos.com/store/babyzone/
First I was trying this:
$post = get_post( $post->ID ); echo $post->post_content;
It kinda worked, but styles and images didn't show up. Then, based on this thread, I changed it to this:
$queried_post = get_post($post_id); echo apply_filters('the_content', $queried_post->post_content);
Now at least images show up correctly (a variable in their url now gets parsed) but css is still incorrect, even though the stylesheet gets loaded. Everything looks perfect on the original page, though. (Meaning the original post created by Visual Composer). I'm not very experienced so this might be a trivial issue. What am I missing?