WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comments only show when Sidebar is disabled(?) (7 posts)

  1. Arlo
    Member
    Posted 8 years ago #

    My site has had a strange problem that I just noticed; on the single post page, comments don't display, even though it says "1 comment". But-- if I remove the sidebar (commenting out get_sidebar();), the comments suddenly appear? What kind of bizarro situation would cause this? I do NOT have a "single.php"; it's pulling the single view using the index template-- however, the same thing happens when I do create a single.php.

    The comments appear correctly when I switch to another theme.

    I searched around, and nearest I saw was people having problems getting sidebars on single/comment pages in Kubrick...but this is the opposite situation.

    Ideas?

  2. oriecat
    Member
    Posted 8 years ago #

    Is this on the site you have linked to your username? Because I can see comments there?

  3. Arlo
    Member
    Posted 8 years ago #

    Sorry nope; my personal site http://www.dalahus.com

  4. oriecat
    Member
    Posted 8 years ago #

    Ahh ok. Yup, that's weird. What theme are you using, or is it something you made yourself?

  5. Arlo
    Member
    Posted 8 years ago #

    I think it started life as the "classic" theme, but heavily modified of course.

    I have no weird plug-ins, I looked over the code, there are no differences in terms of calling comments.php..its very odd.

  6. Arlo
    Member
    Posted 8 years ago #

    Ok- I narrowed it down to my random image hack I have for pulling photos from my Coppermine gallery; why this would fry comments is beyond me. This is the code, maybe someone can figger out why:

    < ? php
    include "./cpmfetch/coppermine.php";
    $objCpm = new cpm("/coppermine");
    $objCpm->cpm_viewRandomMediaFrom(1,1,"cat=3,4");
    $objCpm->cpm_close();
    ?>

  7. Arlo
    Member
    Posted 8 years ago #

    OK, fixed; upgrading to latest cpmfetch fixed it. Peace!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.