Title: Pipe character error
Last modified: August 21, 2016

---

# Pipe character error

 *  Resolved [esilvas](https://wordpress.org/support/users/esilvas/)
 * (@esilvas)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/)
 * I have an error with some code being executed. When I use a pipe character | 
   in my code as a delimiter, the code is displayed on the screen as text and not
   executed.
 * For example:
 * `$variable = "1600 Pennsylvania Avenue, Washington, D.C. | 220 Main Building,
   Notre Dame, IN 46556";`
 * I tried escaping the character ‘\|’, but that did not work. At this point, I 
   am unsure if I can get around the problem. Do you have any suggestions?
 * Thank you.
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

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

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/#post-5128022)
 * Esilvas, substituting “|” for “|” should work.
 * `$variable = "1600 Pennsylvania Avenue, Washington, D.C. | 220 Main Building,
   Notre Dame, IN 46556";`
 * More info about using the pipe character at:
 * [http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#nonworkingelements](http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#nonworkingelements)
 * Will
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/#post-5128048)
 * Error in my previous response. The HTML entity was converted into the character.
 * The first line of my previous response should read:
 * Esilvas, substituting “& #124;” (no space between “&” and “#124;”) for “|” should
   work.
 * (It seems impossible to publish an HTML entity code without the entity being 
   converted into the character in this support area, which is why the space after
   the & to get the code printed.)
 * Will
 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/#post-5128068)
 * Because there has been no response, I’m assuming the original poster resolved
   the issue.
 *  Thread Starter [esilvas](https://wordpress.org/support/users/esilvas/)
 * (@esilvas)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/#post-5128070)
 * Sorry, I have been working on other things over the weekend. Yes, this issue 
   has been resolved. I appreciate the help. Thank you.

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

The topic ‘Pipe character error’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [esilvas](https://wordpress.org/support/users/esilvas/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/pipe-character-error/#post-5128070)
 * Status: resolved