Title: single.php file
Last modified: November 16, 2020

---

# single.php file

 *  Resolved [gibby75](https://wordpress.org/support/users/gibby75/)
 * (@gibby75)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/single-php-file/)
 * I want to automatically add a shortcode to the end of every post. I have instructions
   on how to apply the shortcode via the “echo do_shortcode” command. The plugin
   developer provided instructions for editing the while loop inside the single.
   php file. I’m using the mission news child theme and noted that neither the mission-
   news or mission-news-child theme folders contain the single.php file (or at least
   I can’t find it).
 * The website provided shows the instructions given by the developer.
 * My question is, can you tell me where I can find the mission news single.php 
   file? Or is there an equivalent file location where I can run the do_shortcode
   command and accomplish the same goal?
 * Thank you
 * [website](https://blazzdev.com/documentation/rate-my-post-documentation/#troubleshooting:~:text=The%20best%20place%20to%20add%20this%20snippet%20is%20under%20the%20while%20loop%20in%20the%20single.php%20file%20of%20your%20theme)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsingle-php-file%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/single-php-file/#post-13670091)
 * Hey there,
 * The file you’re looking for is content.php. You can copy that from Mission News
   into your child theme and then add the shortcode after the `the_content()` function.
 *  Thread Starter [gibby75](https://wordpress.org/support/users/gibby75/)
 * (@gibby75)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/single-php-file/#post-13672426)
 * Ben, thank you for the reply. I located the function and added the do_shortcode.
   It works like charm!
 * Thanks again for your help.
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/single-php-file/#post-13673228)
 * You’re welcome! Stay in touch if you need anything else and I’ll be happy to 
   help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘single.php file’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mission-news/1.65/screenshot.png)
 * Mission News
 * [Support Threads](https://wordpress.org/support/theme/mission-news/)
 * [Active Topics](https://wordpress.org/support/theme/mission-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mission-news/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mission-news/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/single-php-file/#post-13673228)
 * Status: resolved