Title: PHP inside raw code element
Last modified: May 15, 2018

---

# PHP inside raw code element

 *  [lpalmeida](https://wordpress.org/support/users/lpalmeida/)
 * (@lpalmeida)
 * [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/)
 * Hello I have this PHP code:
 * <?php get_template_part( ‘code’,’bigger’ ); ?>
 * I would like to use with King Composer, and with the element ‘raw code’
 * How can achieve this?
 * Thanks in advance

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

 *  [Anthony Pham](https://wordpress.org/support/users/tuongpg/)
 * (@tuongpg)
 * [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/#post-10284652)
 * Hi lpalmeida,
 * Did you try that code to Raw Code element?
 * You can put the PHP code in there.
 * Hope that convenient for your plan.
 * Best regards,
 * Anthony
 *  Thread Starter [lpalmeida](https://wordpress.org/support/users/lpalmeida/)
 * (@lpalmeida)
 * [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/#post-10285678)
 * Hello again,
 * Thanks for your quick response. But is not working, maybe i have some restrictions
   writing PHP on the admin panel… i will check if there is… but normally the Element
   Raw Code work with PHP, right?
 * Thanks
 *  Thread Starter [lpalmeida](https://wordpress.org/support/users/lpalmeida/)
 * (@lpalmeida)
 * [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/#post-10286171)
 * **UPDATE**: **Solution**
 * The only way to make it working it was with a plugin “Insert PHP” and using Text
   Block Element (KingComposer)
    -  This reply was modified 8 years ago by [lpalmeida](https://wordpress.org/support/users/lpalmeida/).
 *  [Anthony Pham](https://wordpress.org/support/users/tuongpg/)
 * (@tuongpg)
 * [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/#post-10293428)
 * Hi lpalmeida,
 * Yes, I confirmed that. The Raw code works with HTML/CSS and Javascript only.
 * Best regards,
 * Anthony

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

The topic ‘PHP inside raw code element’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/kingcomposer_747172.svg)
 * [Page Builder: KingComposer - Free Drag and Drop page builder by King-Theme](https://wordpress.org/plugins/kingcomposer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kingcomposer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kingcomposer/)
 * [Active Topics](https://wordpress.org/support/plugin/kingcomposer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kingcomposer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kingcomposer/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Anthony Pham](https://wordpress.org/support/users/tuongpg/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/php-inside-raw-code-element/#post-10293428)
 * Status: not resolved