WordPress.org

Ready to get started?Download WordPress

Forums

Can't leave Comments on Posts (11 posts)

  1. stancoles
    Member
    Posted 3 years ago #

    Hey there. I have researched this problem and still cannot figure out the solution that pertains to me.
    website: http://www.awesometownvintage.com

    you can see "No Responses" which is an active link that goes no where. I have messed with the stylesheet quite a bit, but even after messing with almost all the css I can't figure out why i'm not linking to a comments section.

    I've removed all plugins. I've checked the code from the default theme to the puretype theme that I'm using. I've read the perma-link topic and the migrating plugins - enhanced comment display (a little crazy advanced for me). I still can't figure it out.

    Any help is GREATLY appreciated. Thx

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    one reason: the link to the comments seems to be a relative link, just the #respond part, no permalink part.
    that would be in the template file that shows the front page (the daily lookbook) after the code to show the time of the post, below the title code.

    another reason: single.php might not have the code comments_template() below the line with the_content()

    without seeing these template files, this is only an assumption.
    you could paste the code of these files into a http://wordpress.pastebin.com/ each and post the links to them here.

    hope, comments are allowed in the 'settings' - 'discussion' and also for the individual posts.

  3. stancoles
    Member
    Posted 3 years ago #

    :) Thanks so much for taking a look. Please let me know if you need any other pages. I will put them into pastebin. I really appreciate your help!! This has been such a struggle.

    blogstyle.php- http://wordpress.pastebin.com/cRw8FmLu
    page.php- http://wordpress.pastebin.com/RVuTv8Td
    single.php- http://wordpress.pastebin.com/4zZFq61C

    I've been looking at this page -
    http://ottopress.com/2008/wordpress-2-7-comments-enhancements/

    but still can't figure it out. Thanks again :)

  4. stancoles
    Member
    Posted 3 years ago #

    I forgot to mention that comments are allowed in the discussion settings and in each post. thx.

  5. stancoles
    Member
    Posted 3 years ago #

    Helllloooo ? :)

    I still need help with this. I took a break for a while. I definitely do not have the code for comments_template() below the line with the_content().

    I'm not sure how the code should appear. Any help would be super. thanks. Otherwise I'll just start from scratch. YIKES. :)

  6. keesiemeijer
    moderator
    Posted 3 years ago #

    Your pastebin links are not working anymore. Please re-pastebin.

  7. stancoles
    Member
    Posted 3 years ago #

    I REALLY appreciate your help! :) Let me know if you might need any other pages.

    blogstyle.php - http://pastebin.com/6PtBq58z
    single.php - http://pastebin.com/xWWyfrqe
    page.php - http://pastebin.com/ULeKf12c

  8. stancoles
    Member
    Posted 3 years ago #

    I feel like this should be a pretty easy fix cause I know I just need to add the code that calls the comments page. But I don't know what that code is and can't figure it out to save my life :)

    I have no code with comments_template. And I know the anchor for #respond works on other pages (other wordpress/puretype sites), but since i have no relationship for that anchor it doesn't really get me anywhere. Oh the frustration.

    thanks again. I'll check back soon.

  9. keesiemeijer
    moderator
    Posted 3 years ago #

    try this
    On blogstyle.php replace this:

    <div class="post-info">Posted by <?php the_author() ?> in  <?php the_category(', ') ?> on  <?php the_time('M jS, Y') ?> |  <a href="#respond" title="<?php _e("Leave a comment"); ?>"><?php comments_number('no responses','one response','% responses'); ?></a></div>

    with this:

    <div class="post-info">Posted by <?php the_author() ?> in  <?php the_category(', ') ?> on  <?php the_time('M jS, Y') ?> |  <?php comments_popup_link('Leave a comment', '1 comment',
    '% comments'); ?></div>

    do you have a comments.php in your theme. You cannot comment because the comment template is never called in single.php or page.php: <?php comments_template(); ?>

  10. stancoles
    Member
    Posted 3 years ago #

    Hey. Thanks so much. It didn't work. I don't know what i've done. I have to get the original puretype files.

    I do have a comments template. It's comments.php. I don't know why it's not called.

    :) thanks again for your help!

  11. stancoles
    Member
    Posted 3 years ago #

    Ahahahaha :) I GOT IT!!!! I had to do this:

    <div class="post-info">Posted by .... | #respond" title="<?php _e("Leave a comment"); ?>"><?php comments_number('no responses','one response','% responses'); ?></div>

    and then I had to add this into blogstyle, page and single .php pages.
    <div id="comments">
    <div id="respond">
    <?php comments_template(); ?>
    </div>
    </div>

    before my <?php else : ?> tag.

    OH I'm so EXCITED. :)

Topic Closed

This topic has been closed to new replies.

About this Topic