Forums

[resolved] Comments are closed even set to Allow Comments (2 posts)

  1. pabile
    Member
    Posted 2 years ago #

    I am currently working on a WordPress theme and i got stuck in the comments.

    My template kept showing Comments are closed. even though it is not. I tried loading the default Kubrick theme and the comment section works fine.

    I did some digging and could not find a resolve. I tried copying Kubrick's scripts/template tags but no good neither. Disabled all plugins but still no luck. Rewrite the whole template from scratch and still no good.

    Does anyone know where i went wrong?

    here is a screencap using my theme (active)
    http://i952.photobucket.com/albums/ae6/pabile/tpc/page-1.jpg

    and here is when kubrick is active
    http://i952.photobucket.com/albums/ae6/pabile/tpc/page-2.jpg

    i tried deleting comments.php from my template file and the comments section posts all comments even it is not from this post (1st comment)
    http://i952.photobucket.com/albums/ae6/pabile/tpc/page-3.jpg

    p.s. sorry for the crappy picture. i hope you get the idea.

  2. pabile
    Member
    Posted 2 years ago #

    sorry guys. solved it already. there were something that i placed that made it go wrong. still reviewing but here is what i removed:

    <?php
    	$recent_posts = wp_get_recent_posts();
    	foreach($recent_posts as $post){
    	echo '<li><a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >' .   $post["post_title"].'</a> </li> ';
    	} ?>

Topic Closed

This topic has been closed to new replies.

About this Topic