Title: This plugin breaks displaying PHP Code
Last modified: April 21, 2020

---

# This plugin breaks displaying PHP Code

 *  Anonymous User 17650761
 * (@anonymized-17650761)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/)
 * Reference:
    [https://de.wordpress.org/support/topic/wordpress-zeigt-keinen-code-an/](https://de.wordpress.org/support/topic/wordpress-zeigt-keinen-code-an/)
 * Reproduce error:
    Add a wordpress code block with the following text: <h1>Your
   payment has been successful.</h1> <input type=”hidden” name=”item_name” value
   =”<?php echo $row[‘name’]; ?>”> <input type=”hidden” name=”item_number” value
   =”<?php echo $row[‘id’]; ?>”> <input type=”hidden” name=”amount” value=”<?php
   echo $row[‘price’];€ ?>”>
 * Frontend:
    Code is not getting displayed / partly executed

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

 *  Plugin Author [ikanaweb](https://wordpress.org/support/users/ikanaweb/)
 * (@ikanaweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12709394)
 * Hi @cheffie1 ,
 * You have an error in your code on this line :
 * `<input type="hidden" name="amount" value="<?php echo $row['price'];€ ?>"/>`
 * The “€” symbol should not be inside php tags, or at least between quotes.
 * You can try either :
 * `<input type="hidden" name="amount" value="<?php echo $row['price'] . '€'; ?>"/
   >`
 * or :
 * `<input type="hidden" name="amount" value="<?php echo $row['price']; ?>€"/>`
 * I did not get any error after correction.
 * Here is the whole code :
 *     ```
       <h1>Your payment has been successful.</h1>
       <input type="hidden" name="item_name" value="<?php echo $row['name']; ?>"/>
       <input type="hidden" name="item_number" value="<?php echo $row['id']; ?>"/>
       <input type="hidden" name="amount" value="<?php echo $row['price']; ?>€"/>
       ```
   
 * Could you try this and let me know if it works ?
 * Best regards
    -  This reply was modified 6 years, 1 month ago by [ikanaweb](https://wordpress.org/support/users/ikanaweb/).
    -  This reply was modified 6 years, 1 month ago by [ikanaweb](https://wordpress.org/support/users/ikanaweb/).
 *  Thread Starter Anonymous User 17650761
 * (@anonymized-17650761)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12709434)
 * I have tried:
 * <input type=”hidden” name=”amount” value=”<?php echo $row[‘price’] . ‘€’; ?>”/
   >
 * And it is not getting displayed. There is definitely a issue.
 *  Thread Starter Anonymous User 17650761
 * (@anonymized-17650761)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12709459)
 * Plugin active:
 * Your payment has been successful.
 * (written as h1, input fields not shown)
 * Plugin deactivated:
 * <h1>Your payment has been successful.</h1>
    <input type=”hidden” name=”item_name”
   value=”<?php echo $row[‘name’]; ?>”/> <input type=”hidden” name=”item_number”
   value=”<?php echo $row[‘id’]; ?>”/> <input type=”hidden” name=”amount” value=”
   <?php echo $row[‘price’]; ?>€”/>
 *  Plugin Author [ikanaweb](https://wordpress.org/support/users/ikanaweb/)
 * (@ikanaweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12709487)
 * Thanks for your response.
 * I don’t get what you are trying to do with this code.
    Hidden inputs fields are
   not meant to be displayed (that why they are hidden)
 * Do you actually want to display the code and not execute it on a page ?
    Can 
   you give me a link to the page where the code is executed ?
 * Thanks
 *  Thread Starter Anonymous User 17650761
 * (@anonymized-17650761)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12709499)
 * Correct. I just want it to be shown / displayed. Not executed.
 * Without your plugin:
 *     ```
        <h1>Your payment has been successful.</h1>
        <input type="hidden" name="item_name" value="<?php echo $row['name']; ?>">
        <input type="hidden" name="item_number" value="<?php echo $row['id']; ?>">
        <input type="hidden" name="amount" value="<?php echo $row['price'] . '€'; ?>"/>
        <input type="hidden" name="currency_code" value="EUR">
       ```
   
 * With your plugin:
 * `Your payment has been successful.`
 * Demo:
 * [https://mattionline.de/test/](https://mattionline.de/test/)
 * With your plugin activated the code is getting executed instead of displayed.
   The h1 tag is executed and the input field text is getting executed.
    -  This reply was modified 6 years, 1 month ago by Anonymous User 17650761.
    -  This reply was modified 6 years, 1 month ago by Anonymous User 17650761.
    -  This reply was modified 6 years, 1 month ago by Anonymous User 17650761.
    -  This reply was modified 6 years, 1 month ago by Anonymous User 17650761.
 *  Plugin Author [ikanaweb](https://wordpress.org/support/users/ikanaweb/)
 * (@ikanaweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12714513)
 * Hi @cheffie1
 * Many thanks for the details.
 * Thanks to you feedback, the bug has been fixed and the patch will be available
   soon.
    While waiting for the incoming version, you can deactivate the plugin.
 * Best regards
 *  Plugin Author [ikanaweb](https://wordpress.org/support/users/ikanaweb/)
 * (@ikanaweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12721251)
 * Hi @cheffie1
 * A new version of the plugin is available, can you give it a try ?
 * Best regards

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

The topic ‘This plugin breaks displaying PHP Code’ is closed to new replies.

 * ![](https://ps.w.org/embed-video-thumbnail/assets/icon-256x256.png?rev=1599839)
 * [Embed Video Thumbnail](https://wordpress.org/plugins/embed-video-thumbnail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/embed-video-thumbnail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/embed-video-thumbnail/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-video-thumbnail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-video-thumbnail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-video-thumbnail/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ikanaweb](https://wordpress.org/support/users/ikanaweb/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/this-plugin-breaks-displaying-php-code/#post-12721251)
 * Status: not resolved