Title: PHP not rendering? Content no cache
Last modified: August 6, 2023

---

# PHP not rendering? Content no cache

 *  [blizo](https://wordpress.org/support/users/blizo/)
 * (@blizo)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-not-rendering-content-no-cache/)
 * Hi I added this PHP to the plugins non-cachable content editor (text view)
 *     ```wp-block-code
       <?php echo "hi"; ?>
       ```
   
 * When I view the source it looks like this:
 *     ```wp-block-code
       <!--?php echo "hi"; ?-->
       ```
   
 * Any idea why the PHP isn’t rendering?
 * I am using WP Rocket.

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

 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-not-rendering-content-no-cache/#post-16952566)
 * Hi [@blizo](https://wordpress.org/support/users/blizo/)
 * Content No Cache doesn’t have any inbuilt editor that gives you the possibility
   to add custom PHP code.
   The Content No Cache editor changes if you have Gutenberg
   or a page builder or whatever. If the text mode of your editor doesn’t work with
   PHP, it will never work with Content No Cache.Does the same text mode of your
   editor work with PHP without Content No Cache?
 * If it works without Content No Cache, you can try by adding the parameter request
   =”remote” to the shortcode. For example: [content_no_cache id=”3328″ request=”
   remote”].
 * Have a great day!
 * Jose
 *  Thread Starter [blizo](https://wordpress.org/support/users/blizo/)
 * (@blizo)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-not-rendering-content-no-cache/#post-16952835)
 * Hi [@giuse](https://wordpress.org/support/users/giuse/) ,
 * How do you get PHP to work in the editor?
 * Am I missing something?
 * Thanks for your help!
    -  This reply was modified 2 years, 10 months ago by [blizo](https://wordpress.org/support/users/blizo/).
 *  Thread Starter [blizo](https://wordpress.org/support/users/blizo/)
 * (@blizo)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-not-rendering-content-no-cache/#post-16969253)
 * Hi [@giuse](https://wordpress.org/support/users/giuse/) I am using this plugin
   for PHP:
   [https://en-gb.wordpress.org/plugins/insert-php-code-snippet/](https://en-gb.wordpress.org/plugins/insert-php-code-snippet/)
 * I have added the code for a login form via the insert PHP plugin and added that
   PHP shortcode into the Content No Cache plugin.
 * The login form loads on the frontend and when I login the browser gets stuck 
   on a white page with this URL:
   example.com/wp-admin/admin-ajax.php?action=eos_dyn_get_content
 * Do you know why and any idea how to fix this?
 * After logging in the page should load but it’s getting stuck.
 * Logging in works using the form because when I return to the website the logged
   in menu loads.
    -  This reply was modified 2 years, 10 months ago by [blizo](https://wordpress.org/support/users/blizo/).

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

The topic ‘PHP not rendering? Content no cache’ is closed to new replies.

 * ![](https://ps.w.org/content-no-cache/assets/icon-256x256.png?rev=2687570)
 * [Content No Cache | Serve uncached partial content even when you add it to a page that is fully cached.](https://wordpress.org/plugins/content-no-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/content-no-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/content-no-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-no-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-no-cache/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [blizo](https://wordpress.org/support/users/blizo/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/php-not-rendering-content-no-cache/#post-16969253)
 * Status: not resolved