Support » Plugin: Anti-spam » Shows the captcha on archive pages

  • My theme uses the WP global $withcomments so comment forms show up for every post in archive pages. So 6 posts per page means 6 comment forms.

    On those archive pages I see the captcha “Current ye@r” on each comment form, while on single pages the captcha is hidden.

    Any suggestions to hide the captcha on archive pages?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Seems like something is wrong with the theme.
    I tried the archive pages on many popular themes and everything works fine.
    Try to find the issue in your theme in the archive templates.

    Found the issue:

    In function antispam_enqueue_script() there is a check for is_single() that prevented the anti-spam javascript file from loading on archive pages.

    In the next update can this be changed to load the javascript file on archive pages if $withcomments is true?

    Wait, I don’t get it. Why do you have comments form on the Archive page?
    Can you share the URL of the Archive page with example?
    Or can you tell me the name of the theme?
    And also here is the Git URL for the Anti_spam plugin in case you will have time to make a commit with the fix.

    My theme shows comments and comment form on the home page, category pages, date pages, etc.

    I’ve made a pull request on github. Hope I did it right. 🙂

    Oh, I got it now.
    comments_template() function is very dependent on $withcomments global variable.

    Thank you very much for your commit. I merged it and will test it.
    Your changes will be included in the next Anti-Spam plugin’s release via repository.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shows the captcha on archive pages’ is closed to new replies.