Forums

permalinks & popup comments (8 posts)

  1. myke115
    Member
    Posted 7 years ago #

    I have my site set up to utilize popup comments and they work fine. However, when you click a permalink (as in the archive list or thru a trackback, etc.), the post is pulled up with the embedded comments instead of the comments total with a link that pulls up the pop up comments. How do I fix this?

  2. myke115
    Member
    Posted 7 years ago #

    No ideas? Anybody?

    Alls I want is to use popup comments and have it all uniform instead of the regular comments showing up when pulling up a single post via a permalink.

  3. jdunavin
    Member
    Posted 7 years ago #

    You could yank the line
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    out of your index (assuming you're using 1.2.2).

    I think that would do it.

  4. myke115
    Member
    Posted 7 years ago #

    actually ... that almost worked. when i took it out, the permalink didn't bring up the embedded comments but it didn't have a link to the pop-up comments that were relative to the post either ... i tried replacing the wp-comments.php in the line above with wp-comments-popup.php but it gave me an error.

  5. ChrisFryer
    Member
    Posted 7 years ago #

    I have exactly the same problem. It would be great if someone could come up with a solution to the problem.

    I'll be doing a google search after this to find the solution, so I'll be back.

    Why don't the developers of Word Press read this forum. Myke115's post has been up for over a week and no one has given him a decent answer.

  6. ChrisFryer
    Member
    Posted 7 years ago #

    Ok i've found a solution for this problem. the soultion was actually right here in this very forum, so i take back what i said about wordpress developers.

    Look for the following line in your index.php

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>

    Just before this line add this one.

    <?php $single=false; ?>

    So it looks like this.

    <?php $single=false; ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>

    Adding this line will not stuff up 'the loop' because the loop only runs once on the permalink page, it doesnt stuff up the main page as single already equals false.

    I checked the code and it runs perfectly.

  7. ColourDreamer
    Member
    Posted 6 years ago #

    I have this same problem, but I am using 1.5.1.3 and when I try to insert the link to popup comments, the page gets messed up. This solution does not work. What do I include on my Post Template?

  8. lnicoletti
    Member
    Posted 5 years ago #

    @ ChrisFryer

    <?php $single=false; ?> does not work,

    but <?php $wp_query->is_single=false; ?> works fine

Topic Closed

This topic has been closed to new replies.

About this Topic