Ivan ZugecContactContact me
All posts

How to load comments anywhere within a template

Use the following code to load the comment anywhere:

   if (function_exists('comment_render') && $node->comment) {
       print comment_render($node, $node->cid);
       $node->comment = NULL;
    }

Hiring, or have a project in mind?

Get in touch and tell me about the role or what you're building.

Contact me