• Hi Guys

    When invoking the comments_template() function, is there a way I can forward my own parameters for the comments.php file to process ? I have two blogs, namely courses and events, so ideally I’d like to do something as follows:

    comments_template(‘events’)
    comments_template(‘courses’)

    That way depending on the input I can get the relevant data from the DB and process it. Is this possible?

Viewing 1 replies (of 1 total)
  • The ‘comment_form’ action hook might help. Try:

    add_action('comment_form',create_function('','echo "This is inside the comment form.";'));
Viewing 1 replies (of 1 total)

The topic ‘custom parameters for comments_template()’ is closed to new replies.