plugins – Help with comments.php

Question

I have a page with a shortcode that displays information from the database. I have set it up to allow comments on the page. The problem I am having is when I click Submit Comment, I get the following message:

Notice: Undefined index: id in events.php on line 989

This line gets the id from the link the user clicks to get to this page, which works fine. Is there a way to pass this id through the comments.php page to make sure the page loads fine? Here is the comments.php code:

if (have_comments()) {
    wp_list_comments('');
}

$comments_args = array(
    'label_submit' => 'Submit Comment',
    'title_reply' => 'Post a Comment',
    'comment_notes_after' => ''
);
comment_form($comments_args);

0
Darth Mikey D 1 month 2021-03-31T13:24:28-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse