- This topic has 3 replies, 2 voices, and was last updated 7 months, 2 weeks ago by .
-
Topic
-
Hi,
I have set my view to Custom
I load my content via ajax using this
$shortcode = ‘[mb_views id=”‘.$post->ID.'”]’;
//$shortcode = ‘[mbv id="'.$post->ID.'"]‘; // depends on which is correct see pic below
echo do_shortcode($shortcode);
But it only outputs the shortcode
Also the shortcodes differ for views
see pic belowHow do I display shortcodes for MB Views via ajax?
Thanks in advance
Pat
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.