WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multiple comment areas/forms on the same page (2 posts)

  1. Mike Stop Continues
    Member
    Posted 3 years ago #

    I'm trying to have a "comments sidebar" for each post on the mainpage. As I suspected, wordpress doesn't maintain the ajax comments stuff well. For instance, clicking reply on on post's comment causes the comment boxes for every post to switch to reply mode...

    How can I solve this?

  2. Mike Stop Continues
    Member
    Posted 3 years ago #

    Solved!

    I realized the comment-reply.js wasn't getting loaded...

    So in the header I replaced:
    <?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>

    with

    <?php wp_enqueue_script('comment-reply'); ?>

    Brilliant!

Topic Closed

This topic has been closed to new replies.

About this Topic