Support » Fixing WordPress » comment_form($post_id) not using $post_id, but last created post

  • Hello,
    I’m trying to use comment_form to put comments to specific post (50 for example) but comment form uses last post created and on ridirects to 404 with last post made.

    I want to make comments connected to specific post and on same page read them.
    I have scroll page website.

    Checked DB it makes new posts connected to wrong post (last created)

    this part of the code
    ‘comment_form( 14 );

    $replies = get_comments( array(
    ‘number’ => 30,
    ‘status’ => ‘approve’,
    ‘post_id’ => 14

    ));’
    What can I do?
    Thanks a lot in advance!
    Alexei

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘comment_form($post_id) not using $post_id, but last created post’ is closed to new replies.