ok… i commented the php code using <!-- and --> tag instead of //
Issue resolved. Thanks a million.
moshu, thanks for replying.
The comments_popup_script() funtion in the header is commented right now. Previously I had setup my blog to open comments in a popup window, but recently I disabled it. Since then comments open this way.
The code for comments in index page is as follows:
<div class="post-footer"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »','','<span>Comments Off</span>'); ?></div>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
I have an idea that something is wrong here, and it really should be calling the post permalink, but I don’t know how to change it accordingly.
Thanks for the help.