Title: Putting PHP code inside of PHP code?
Last modified: August 21, 2016

---

# Putting PHP code inside of PHP code?

 *  [michaelhhv](https://wordpress.org/support/users/michaelhhv/)
 * (@michaelhhv)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/putting-php-code-inside-of-php-code/)
 * Probably not saying it right. I have the Add This plugin that allows you to login
   with your social network to leave a comment. It gives you a small line of PHP
   code:
 * `<?php addthis_ssi();?>`
 *  to add into the PHP of your theme. I was hoping to put it inside of the last
   line of code in the editor section “Comments.php” inside of the last line of 
   code:
 * `<?php comment_form(); ?>`
 * as opposed to just above it. It works fine just above it for the posts, but unfortunately
   the Sign in and social networks are shown on all pages and posts whether comments
   are enabled or not. I just want it to be shown when the actual comment box is
   shown. Unfortunately I don’t want to think it’s as easy as doing something like
   this:
 * `<?php addthis_ssi();? <?php comment_form(); ?>>`
 * because I’m quite sure I’d be headed to my file manager afterwards when my whole
   site got thrown into oblivion. Thank you for any help in this matter.

The topic ‘Putting PHP code inside of PHP code?’ is closed to new replies.

## Tags

 * [php code](https://wordpress.org/support/topic-tag/php-code/)

 * 0 replies
 * 1 participant
 * Last reply from: [michaelhhv](https://wordpress.org/support/users/michaelhhv/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/putting-php-code-inside-of-php-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
