Title: Box content can use php code ?
Last modified: June 16, 2018

---

# Box content can use php code ?

 *  Resolved [gjp0117](https://wordpress.org/support/users/gjp0117/)
 * (@gjp0117)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/box-content-can-use-php-code/)
 * Box content can use php code?
    example: <?php if(function_exists(‘the_ratings’)){
   the_ratings(); } ?>
 * and it became
 * <!–?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?–>
 * 3Q

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

 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/box-content-can-use-php-code/#post-10417340)
 * It follows the same rules as any other content editor in WordPress, like your
   posts or pages, meaning in most cases you are not allowed to use PHP code there
   unless you modified your WordPress to allow PHP code in Posts/Pages/Widgets/etc.
 * However, you CAN use any kind of shortcode from other plugins and some plugins
   may allow you to insert PHP via shortcode.
 * Hope that helps. If you have any questions, please let us know!
 *  Thread Starter [gjp0117](https://wordpress.org/support/users/gjp0117/)
 * (@gjp0117)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/box-content-can-use-php-code/#post-10422702)
 * thanks you answer.
    “some plugins may allow you to insert PHP via shortcode.”
   i got it !
    -  This reply was modified 7 years, 11 months ago by [gjp0117](https://wordpress.org/support/users/gjp0117/).

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

The topic ‘Box content can use php code ?’ is closed to new replies.

 * ![](https://ps.w.org/boxzilla/assets/icon-256x256.png?rev=1414640)
 * [Boxzilla - WordPress Popup Builder](https://wordpress.org/plugins/boxzilla/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/boxzilla/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/boxzilla/)
 * [Active Topics](https://wordpress.org/support/plugin/boxzilla/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/boxzilla/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/boxzilla/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [gjp0117](https://wordpress.org/support/users/gjp0117/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/box-content-can-use-php-code/#post-10422702)
 * Status: resolved