• tenchan

    (@tenchan)


    Hi

    Comments aren’t showing up on my site. I already went thru previous posts on this forum, but they didn’t help. I actually made a template for my site, and it’s when I’m using this template that the comments don’t show up. When I switch to default or classic, the comments seem to work properly. Here is the relevant code:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><br />
    <img src="images/cursor.png" alt="" width="12px" height="15px" style="margin-left:25px;margin-top:23px;"/>&nbsp;&nbsp;<a>" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
    <p class="date"><?php the_time('F jS, Y'); ?> @ <?php the_time('g:i a'); ?><br />
    <div class="entry"><?php the_content('Read on...'); ?></div><br />
    <p class="comment">[<?php comments_popup_link('&nbsp;0 Comments&nbsp;', '&nbsp;1 Comment&nbsp;', '&nbsp;% Comments&nbsp;'); ?>]<br />
    <!--<br />
    <?php trackback_rdf(); ?><br />
    --><br />
    <img src="images/divider.png" alt="" width="400px" height="1px" style="margin-top:30px; margin-bottom:30px;margin-left:20px;"/><br />
    <?php endwhile; else: ?><br />
    <h2>Not Found</h2><br />
    <p class="entry"><?php _e('Sorry, but you are looking for something that isnt here.'); ?><br />
    <?php endif; ?>

    Also, here is the site for your reference: http://crux-gammata.net

    Please help!

    Thank you,
    Ann~

Viewing 9 replies - 1 through 9 (of 9 total)
  • ColdForged

    (@coldforged)

    Ann, there’s nothing in that template to actually show comments :). Perhaps that’s the issue. I’d suggest modeling more of your template off, for instance, the default template.

    Thread Starter tenchan

    (@tenchan)

    Hi

    I only posted the Loop part of the code. And I got the php stuff from the default template. I did kind of model off the default template but I removed some parts that I didn’t want in my layout. What exactly would I need to put to show the comments? ^^;; Sorry, this is my first time using wordpress. >.<

    Here’s the entire index.php page in case you need to look at it:
    <?php ob_start(); ?>
    <?php get_header(); ?>

    <div id="left">
    <img src="images/cg_01.jpg" width="160px" height="199px" alt="" style="position:absolute; top:0px; left:0px;"/>
    <img src="images/cg_02.jpg" width="160px" height="199px" alt="" style="position:absolute; top:0px; left:160px;"/>
    <img src="images/cg_05.jpg" width="160px" height="200px" alt="" style="position:absolute; top:199px; left:0px;"/>
    <img src="images/cg_06.jpg" width="160px" height="200px" alt="" style="position:absolute; top:199px; left:160px;"/>
    <img src="images/cg_09.jpg" width="160px" height="199px" alt="" style="position:absolute; top:399px; left:0px;"/>
    <img src="images/cg_10.jpg" width="160px" height="199px" alt="" style="position:absolute; top:399px; left:160px;"/>
    <img src="images/cg_13.jpg" width="160px" height="201px" alt="" style="position:absolute; top:598px; left:0px;"/>
    <img src="images/cg_14.jpg" width="160px" height="201px" alt="" style="position:absolute; top:598px; left:160px;"/>
    <div id="nav">
    <a href="http://crux-gammata.net&quot; title="Home"><img src="images/browse_01.png" width="104px" height="31px" alt="" style="position:absolute; top:325px; right:72px;"/></a>
    <a href="http://crux-gammata.net/domain&quot; title="Info"><img src="images/browse_02.png" width="104px" height="29px" alt="" style="position:absolute; top:356px; right:72px;"/></a>
    <a href="http://crux-gammata.net/sites&quot; title="Sites"><img src="images/browse_03.png" width="104px" height="31px" alt="" style="position:absolute; top:385px; right:72px;"/></a>
    <a href="http://crux-gammata.net/contact&quot; title="Contact"><img src="images/browse_04.png" width="104px" height="29px" alt="" style="position:absolute; top:416px; right:72px;"/></a>
    <a href="http://crux-gammata.net/guestbook&quot; title="Guestbook"><img src="images/browse_05.png" width="104px" height="31px" alt="" style="position:absolute; top:445px; right:72px;"/></a>
    <a href="http://crux-gammata.net/exit&quot; title="Links & Exit"><img src="images/browse_06.png" width="104px" height="34px" alt="" style="position:absolute; top:476px; right:72px;"/></a>
    </div>
    <?php get_sidebar(); ?>
    </div>

    <div id="right">
    <img src="images/cg_03.jpg" width="220px" height="199px" alt="" style="position:absolute; top:0px; left:0px;"/>
    <img src="images/cg_04.jpg" width="220px" height="199px" alt="" style="position:absolute; top:0px; left:220px;"/>
    <img src="images/cg_07.jpg" width="220px" height="200px" alt="" style="position:absolute; top:199px; left:0px;"/>
    <img src="images/cg_08.jpg" width="220px" height="200px" alt="" style="position:absolute; top:199px; left:220px;"/>
    <img src="images/cg_11.jpg" width="220px" height="199px" alt="" style="position:absolute; top:399px; left:0px;"/>
    <img src="images/cg_12.jpg" width="220px" height="199px" alt="" style="position:absolute; top:399px; left:220px;"/>
    <img src="images/cg_15.jpg" width="220px" height="201px" alt="" style="position:absolute; top:598px; left:0px;"/>
    <img src="images/cg_16.jpg" width="220px" height="201px" alt="" style="position:absolute; top:598px; left:220px;"/>
    <div id="main">
    <p class="header"><img src="images/root_b.png" width="60px" height="25px" alt="/root"/></p>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <img src="images/cursor.png" alt="" width="12px" height="15px" style="margin-left:25px;margin-top:23px;"/>&nbsp;&nbsp;<a class="title" id="entry<?php the_ID(); ?>" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    <p class="date"><?php the_time('F jS, Y'); ?> @ <?php the_time('g:i a'); ?></p>
    <div class="entry"><?php the_content('Read on...'); ?></div>
    <p class="comment">[<?php comments_popup_link('&nbsp;0 Comments&nbsp;', '&nbsp;1 Comment&nbsp;', '&nbsp;% Comments&nbsp;'); ?>]</p>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <img src="images/divider.png" alt="" width="400px" height="1px" style="margin-top:30px; margin-bottom:30px;margin-left:20px;"/>
    <?php endwhile; else: ?>
    <h2>Not Found</h2>
    <p class="entry"><?php _e('Sorry, but you are looking for something that isnt here.'); ?></p>
    <?php endif; ?>
    <?php get_footer(); ?>
    <?php
    include_once 'replacePngTags.php';
    echo replacePngTags(ob_get_clean());
    ?>

    Please help me fix this.

    Thanks,
    Ann~

    moshu

    (@moshu)

    1. It is better to paste code not in the forum but here: http://paste.uni.cc
    2. The default theme has a single.php for showing individual posts with comments, that’s why the call for comments.php template is not in there.
    3. You’ll need something like this in your index.php:
    <?php comments_template(); // Get wp-comments.php template ?>
    just before this line
    <?php endwhile; else: ?>

    Thread Starter tenchan

    (@tenchan)

    Thanks very much for the info! Sorry about the code >.< I’ll use the pastebin next time.

    I’ll place the snippet you gave me and work with the singe.php file as well.

    Thanks again,
    Ann~

    applejack

    (@applejack)

    My problem SHOULD be easier to address: New Installation 1.5 – New posts are added fine, but noone can ‘comment’ on anything. All checkmarks are removed so that anyone can post w/o my okay. Note that when clicking on the ‘Comments RSS’ link on the menu, my browser comes up with “Page cannot be displayed” and this is what is in the address bar “feed:http://www.mydomain.com/myblog/wp-commentsrss2.php&#8221;
    I am a definite newbie to this, but have many years of expereince in webpage design, so I understand lots of geektalk. Any body out there in WP-land got some help? Thanks

    I’m having exactly the same problem as applejack… the comments worked immediately after installation, but stopped displaying after tweaking the settings and templates a bit. I reverted back to the default template, which wasn’t changed, and searched through the settings for anything that could have caused this, but now the comments still won’t show up. The comments will display if I activate pop-up comments, however. Thanks to anybody who can help!

    To the last 2 posters: without a link and/or a code pasted as intructed above nobody will be able to help.

    (BTW, RSS feeds have nothing to do with being able to comment)

    I’ve got the problem that when I click on the comments link, it pops open with the index page, saying the page doesn’t excist. I’m fairly new to php and all, still learning about it and I’ve searched this site with topics of the same problem but I couldn’t make my way in it. I hope some one can help me. I’ve got the blog code pasted in a page called home.php which is in the directory pages.

    Here’s the link to the code of home.php : http://paste.uni.cc/7005 ….

    If there’s any other information that’s needed, please let me know, so I can post that as well. Really would like to have the comments working alright.

    I’m having a similar problem as the last poster, that when you click on a comment or category link- you get a not found message.

    It might be in the permalinks settings (I’ve only been using WP for a couple of days- so I may have missed something obvious) but clicking on the link looks for this address:
    http://www.crashingsilence.net/wp/2005/07/20/fiddly-and-stuff/#comments

    There no file or folder in the wp directory called 2005- so is it looking for something that doesn’t exist, or should be in the DB.
    If it is meant to have written those files- should I have done somehting to make them write?

    Any help would be gratefully received- one of the reasons I chose WP was the integrated comments system and now it doesn’t seem to work.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Comments not working; other posts didn’t help’ is closed to new replies.