Title: Inserting Images in Posts &#8211; Bug?
Last modified: August 18, 2016

---

# Inserting Images in Posts – Bug?

 *  [functionjunkie](https://wordpress.org/support/users/functionjunkie/)
 * (@functionjunkie)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/)
 * Hi All,
 * I am trying to add an image to a post, and I don’t know if I am losing my mind
   here, but something strange is going on.
 * If I add
 * `
    <img src="<?php bloginfo('template_url'); ?>/images/external.gif" alt="External
   Link" title="External Link" />
 * to my post, it changes it to
 * `
    <img src="<?php bloginfo('template_url'); ?/>/images/external.gif" alt="External
   Link" title="External Link" />
 * by adding a slash after the closing ? for the php tag.
 * Bug?

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

 *  [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213438)
 * it’s not a bug but meant to do that so that php code cannot be used within a 
   post – it’s a security thing.
 * you can install runphp or wp-exec to run php within a post
 *  Thread Starter [functionjunkie](https://wordpress.org/support/users/functionjunkie/)
 * (@functionjunkie)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213440)
 * Ah… good to know. I’m going to use the full path to the image. Thanks Jinsan.
 * Where can I get these 2 apps or plugins if need be?
 * – Justin
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213441)
 * Or place the image in a different location, like a separate “images” folder in
   the WordPress root.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213443)
 * You can find runphp here: [http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/](http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/)
   and wp-exec here: [http://www.navidazimi.com/projects/wp-exec](http://www.navidazimi.com/projects/wp-exec)
 *  [jinsan](https://wordpress.org/support/users/jinsan/)
 * (@jinsan)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213444)
 * you can also try:
 * [http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/](http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)
 * which may very well be the same thing since Mac beat me to it 😀
 *  Thread Starter [functionjunkie](https://wordpress.org/support/users/functionjunkie/)
 * (@functionjunkie)
 * [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213450)
 * Great… Thanks guys! Much appreciated.

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

The topic ‘Inserting Images in Posts – Bug?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [functionjunkie](https://wordpress.org/support/users/functionjunkie/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/inserting-images-in-posts-bug/#post-213450)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
