Title: Insert php variable from ACF inside form
Last modified: August 17, 2021

---

# Insert php variable from ACF inside form

 *  Resolved [haendzel](https://wordpress.org/support/users/haendzel/)
 * (@haendzel)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/insert-php-variable-from-acf-inside-form/)
 * Hello!
 * Will be possible add php code inside form template? I need display variables 
   from ACF plugin in the form. When I see output the code line php is commented,
   why?

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

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/insert-php-variable-from-acf-inside-form/#post-14774710)
 * Hello.
    The php code for the booking form at the Booking > Settings > Form page
   does not possible to add. Sorry. Kind Regards.
 *  Thread Starter [haendzel](https://wordpress.org/support/users/haendzel/)
 * (@haendzel)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/insert-php-variable-from-acf-inside-form/#post-14774772)
 * Thank you for answer. I have one question yet.
    Why I can’t add [calendar] and[
   timeslot] by do_shortcode() method in my own page file? What method generate 
   these oshortcodes?
 * All the best
 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/insert-php-variable-from-acf-inside-form/#post-14774782)
 * Hello.
    Shortcodes, like this [calendar] you can add ONLY to the booking form
   at the Booking > Settings > Form page.
 * This function do_shortcode() can be applied only to the shortcodes that you insert
   into the content of the post or page. Here is list of such shortcodes: [https://wpbookingcalendar.com/faq/#shortcodes](https://wpbookingcalendar.com/faq/#shortcodes)

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

The topic ‘Insert php variable from ACF inside form’ is closed to new replies.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/insert-php-variable-from-acf-inside-form/#post-14774782)
 * Status: resolved