• Resolved godsinventor

    (@godsinventor)


    Alright, I am using the sunsetidea-10 theme and want to have popup comments. But is refusing to work!!! I have used comments_popup_link(); in tandem with comments_popup_script(); with all of the options filled in. Why wont it work? Am I putting them in the wrong place? I am putting them in single.php and page.php Where should I put them if not there? header.php?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This would normally work off of every template *but* the single post and Page templates, at least in the case of comments_popup_link(). But we can temporarily fool WordPress to make it work:

    In single.php:
    <?php $wp_query->is_single = false; comments_popup_link(); $wp_query->is_single = false; ?>

    In page.php
    <?php $wp_query->is_page = false; comments_popup_link(); $wp_query->is_page = false; ?>

    Thread Starter godsinventor

    (@godsinventor)

    Thank you so much! This worked wonderfully! I spent over a week on this and the answer was staring me in the face! Thanks again for showing me how to do this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comment Popups refuse to work’ is closed to new replies.