WordPress.org

Forums

Captcha by BestWebSoft
[resolved] Confused with comments_template and comment_form (2 posts)

  1. Julian Claus
    Member
    Posted 2 years ago #

    Hi,

    The plugin only works when I use "comment_form" but then the comments are not showing. What must I do?

    Thanks!

    http://wordpress.org/extend/plugins/captcha/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    You may have a theme that has not properly coded comments.php.

    The version of WP makes a difference...

    (WP2 series) Your theme must have a <?php do_action('comment_form',
    $post->ID); ?> tag inside your
    /wp-content/themes/[your_theme]/comments.php file. Most WP2 themes
    already do. The best place to locate the tag is before the comment
    textarea, you may want to move it up if it is below the comment
    textarea.

    (WP3 series) Since WP3 there is new function comment_form inside
    /wp-includes/comment-template.php. Your theme is probably not up to
    current code to call that function from inside comments.php. WP3 theme
    does not need the do_action('comment_form'... code line inside
    /wp-content/themes/[your_theme]/comments.php. Instead, it uses a new
    function call inside comments.php: <?php comment_form(); ?> If you
    have WP3 and still have captcha missing, make sure your theme has
    <?php comment_form(); ?> inside
    /wp-content/themes/[your_theme]/comments.php. (look inside the Twenty
    Ten theme's comments.php for proper example)

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Captcha by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic