Title: PHP code for frontend
Last modified: January 27, 2019

---

# PHP code for frontend

 *  Resolved [patrikvolek](https://wordpress.org/support/users/patrikvolek/)
 * (@patrikvolek)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-for-frontend/)
 * Hey, this is an awesome plugin. Really great job.
 * However, I’m somehow unable to get PHP code for frontend working. I literally
   copied your example from [documentation](https://lazyblocks.com/documentation/blocks-code/php/)(
   of course, I updated the block and control name). In the Editor, it works like
   a charm. But on the frontend, it doesn’t seem to render anything.
 * Any idea what could cause this issue?
 * (I don’t have any other guttenberg-connected plugin installed)

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

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-for-frontend/#post-11136745)
 * Hi.
 * Yes, there was a bug. Update plugin to 1.4.1, now it should work ok.
 *  Thread Starter [patrikvolek](https://wordpress.org/support/users/patrikvolek/)
 * (@patrikvolek)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-code-for-frontend/#post-11136755)
 * Works like a charm. Thanks for such an express reaction!
 *  [Giang Le](https://wordpress.org/support/users/gianghl1983/)
 * (@gianghl1983)
 * [7 years ago](https://wordpress.org/support/topic/php-code-for-frontend/#post-11582577)
 * [@patrikvolek](https://wordpress.org/support/users/patrikvolek/) Hi, can you 
   teach me how to modify the code from [https://lazyblocks.com/documentation/blocks-code/php/](https://lazyblocks.com/documentation/blocks-code/php/)
 * I tried to test but not successful.
 * Thank you!

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

The topic ‘PHP code for frontend’ is closed to new replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Giang Le](https://wordpress.org/support/users/gianghl1983/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/php-code-for-frontend/#post-11582577)
 * Status: resolved