Hi.
I have strange issue with WP Shortcode. I want to make shortcode which will put comments where i want it. Here is the shortcode:
function custom_comment_func( $atts ){
$comments = comments_template();
return 'div class="comment-wrapper"' . $comments . '/div';
}
add_shortcode( 'custom_comment', 'custom_comment_func' );
And shortcode work’s but the problem is that instead to put comments on bottom where i put the shortcode it is always put’s it on top before content. Maybe some issue with execution ? I dont know. Please give some idea where i got wrong. Thanks.