Support » Plugin: Captcha » Confused with comments_template and comment_form

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Confused with comments_template and comment_form’ is closed to new replies.