Title: Example with PHP doesn&#039;t work
Last modified: August 20, 2016

---

# Example with PHP doesn't work

 *  [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/example-with-php-doesnt-work/)
 * Example 1 from [http://wordpress.org/extend/plugins/wp-syntax/other_notes/](http://wordpress.org/extend/plugins/wp-syntax/other_notes/)
   with the PHP code block doesn’t work.
 * Here’s what I get:
    [http://img708.imageshack.us/img708/4024/screenshot20110704at658.png](http://img708.imageshack.us/img708/4024/screenshot20110704at658.png)
 * Here’s what it’s supposed to look like:
    [http://wordpress.org/extend/plugins/wp-syntax/screenshots/](http://wordpress.org/extend/plugins/wp-syntax/screenshots/)
 * WordPress just nukes the code.

Viewing 1 replies (of 1 total)

 *  Thread Starter [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/example-with-php-doesnt-work/#post-2163891)
 * I give up.
    Using `<pre>` tags in WordPress is dangerous. WordPress messes it
   all up.
 * The plugin should use shortcodes instead.
 * I’m switching to [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

Viewing 1 replies (of 1 total)

The topic ‘Example with PHP doesn't work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-syntax_f8f6f6.svg)
 * [WP-Syntax](https://wordpress.org/plugins/wp-syntax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-syntax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-syntax/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-syntax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-syntax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-syntax/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [huyz](https://wordpress.org/support/users/huyz/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/example-with-php-doesnt-work/#post-2163891)
 * Status: not resolved