Title: Adding post title to comment_form
Last modified: August 21, 2016

---

# Adding post title to comment_form

 *  [codynew](https://wordpress.org/support/users/codynew/)
 * (@codynew)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/adding-post-title-to-comment_form/)
 * Hi
 * In my comments.php file I changed
 *     ```
       <?php comment_form(); ?>
       ```
   
 * to
 *     ```
       <?php
       comment_form(array(
       'title_reply' => 'Add a comment',
       'title_reply_to' => 'Add a reply to %s',
       ));
       ?>
       ```
   
 * so that I could change the displayed text in the comment area, however I cant
   seem to add the name of the post title to the text.
 * **How do I add the name of the post title to my text please?**

The topic ‘Adding post title to comment_form’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [codynew](https://wordpress.org/support/users/codynew/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/adding-post-title-to-comment_form/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
