Skip to main content

Wordpress comments in sidebar 33 Responses

Last post: 3 years, 10 months ago | Thread started: Jan 26, 11, 6:29 p.m.

RespondNew TopicDisable Images

  • Sep

    Working on a wordpress-theme conversion for a client's blog.

    I'm trying to get the comments for a post to show up in the sidebar instead of in the single.php. I've implemented the comments in the sidebar of other themes before so I know it's possible.

    In sidebar.php I've used:
    <?php comments_template(); ?>

    It calls the comment and comment-form correctly, but when you try to submit a comment from the sidebar you get redirected to a blank wp-comments-post.php and the comment is not posted...

    When I call the comments in the single.php, everything works just fine.

    I've been looking for hours for a way to fix it...

    If anyone has an idea, hint or sollution...
    Much appreciated.

    Jan 26, 11, 6:29 p.m. – Permalink
  • Sep

    Update:

    Threaded comments seem to be working in the sidebar. I can reply to already made comments there. But if I want to post a new comment from the comment-form in the sidebar: still the blank wp-comments-post.php.

    It must have something to do with the post- or comment-id I presume...

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJan 26, 11, 7:04 p.m. – Permalink
  • Sep

    Update: Found out that it is indeed an ID problem... When I put the comment-form in the sidebar it doesn't seem the find the comment_post_ID.

    Still looking to fix that...

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJan 26, 11, 7:54 p.m. – Permalink
  • chilamont

    do you have a link? uhmmm

    • Nope, working locally. But it's fixed now. Thanks.Sep
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earJan 26, 11, 8:34 p.m. – Permalink

Login or Register to respond to this

Skip to main content