Thursday, June 6, 2013

[Help Wordpress] shortcode not working / ajax call


hi


i'm trying to show the slider after an ajax call - the function in functions.php :



function ajax_get_projet($id){
$post= get_post($id);
$content = $post->post_content;
echo $content;
}


is returning only the shortcode : [gallery ids="18,21,22,20,19" royalslider="2"]


if i try :



echo do_shortcode('[gallery ids="18,21,22,20,19" royalslider="2"]');

the first image is showing but no controls

viewing the post in is 'normal' page show the gallery fine


can you help me on this?


thanx



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post