Title: Shortcode for &quot;set an Appointment&quot; button
Last modified: August 21, 2016

---

# Shortcode for "set an Appointment" button

 *  [ron24g](https://wordpress.org/support/users/ron24g/)
 * (@ron24g)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/)
 * Hi i need to display the “appointment” button on one page(my services) and would
   like to have “appointment”button and calender on another page(appoinment) i have
   been messing with the code for two days now and cant figure it out i tried the
   code on one of the post on here but nothing, i can get the button to display 
   on the page i want but it doesnt function and doesnt look like the other “appointment”
   button that is in the shortcode [APCAL] it’s a plain button with no function 
   when i click please help!!
 * [https://wordpress.org/plugins/appointment-calendar/](https://wordpress.org/plugins/appointment-calendar/)

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

 *  Plugin Contributor [FARAZFRANK](https://wordpress.org/support/users/farazfrank/)
 * (@farazfrank)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888011)
 * Hey Ron,
 * Here the instruction:
 * **File:** `appointment-calendar-shortcode.php`
    **File Path:** \plugins\appointment-
   calendar-v-2.7.1\
 * Find below code: (code line no 627)
 *     ```
       <!---Show appointment calendar--->
       <div id='calendar'>
        ...
        ...
        ...
       </div>
       ```
   
 * And remove the id=’calendar’ attribute from the <div> tag:
 *     ```
       <!---Show appointment calendar--->
       <div>
        ...
        ...
        ...
       </div>
       ```
   
 * Thanks
    Frank
 *  Thread Starter [ron24g](https://wordpress.org/support/users/ron24g/)
 * (@ron24g)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888186)
 * Thanks for responding farazfrank
    If I remove the id=’calender’ won’t that remove
   the calendar all together!? I still want the calendar and button that’s in the
   regular [APCAL], but on another page I just want the button. Thanks
 *  Thread Starter [ron24g](https://wordpress.org/support/users/ron24g/)
 * (@ron24g)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888190)
 * thanks figured it out!
 *  [wordpressranjith](https://wordpress.org/support/users/wordpressranjith/)
 * (@wordpressranjith)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888209)
 * how can integrate the payment gangway when the client booking
 * any can help me ?
 *  Plugin Contributor [FARAZFRANK](https://wordpress.org/support/users/farazfrank/)
 * (@farazfrank)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888236)
 * Hi Ranjith,
 * Sorry! but this feature available in premium version.
 * Try our demo at Appointzilla to understand PayPal integration.
 * This will help you.
 * Thanks
    Frank
 *  [boutzamat](https://wordpress.org/support/users/boutzamat/)
 * (@boutzamat)
 * [12 years ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888295)
 * So, ron24g how did you do?
 * I didnt understand how, because i want to use a button as well to book from another
   page.
 *  Thread Starter [ron24g](https://wordpress.org/support/users/ron24g/)
 * (@ron24g)
 * [12 years ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888296)
 * i used this code, substitute “??” with the page id number u want the button on
   without the calender. file to modify :appointmentshortcode.php line: #632
 *  <!—Display Booking Instruction—>
    <?php if($AllCalendarSettings[‘apcal_booking_instructions’]){?
   > <div style=”color:red;” id=”bookinginstructions” align=”center”> <?php echo
   $AllCalendarSettings[‘apcal_booking_instructions’]; ?> </div> <?php } ?>
 *  <?php
    $pageID = get_the_ID(); if ($pageID == ??){?> <!—Schedule New New Appointment
   Button—> <div id=”bkbtndiv” align=”center” style=”padding:5px;”> <button name
   =”addappointment” class=”apcal_btn apcal_btn-primary” type=”submit” id=”addappointment”
   > <i class=”icon-calendar icon-white”></i> <?php if($AllCalendarSettings[‘booking_button_text’]){
   echo $AllCalendarSettings[‘booking_button_text’]; } else{ echo _e(“Schedule New
   Appointment”, “appointzilla”); } ?>
 *  </button>
    <?php }else{?> <!—Schedule New New Appointment Button—> <div id=”
   bkbtndiv” align=”center” style=”padding:5px;”> <button name=”addappointment” 
   class=”apcal_btn apcal_btn-primary” type=”submit” id=”addappointment”> <i class
   =”icon-calendar icon-white”></i> <?php if($AllCalendarSettings[‘booking_button_text’]){
   echo $AllCalendarSettings[‘booking_button_text’]; } else{ echo _e(“Schedule New
   Appointment”, “appointzilla”); } ?>
 *  </button>
    </div>
 *  <!—Show appointment calendar—>
    <div id=’calendar’>
 *  <?php }?>
 *  [boutzamat](https://wordpress.org/support/users/boutzamat/)
 * (@boutzamat)
 * [12 years ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888301)
 * hmm, i tried copying your code and inserting it into the text editor in Wp on
   the “Text” tab, and i changed the “??” to the same id as the page i pasted the
   code on, but i get 2 buttons that doesnt work and shows some sort of php code
   inside of the buttons -.-
 * i tried looking at appointment-calendar-shortcode.php line #632 but it says: 
   return false; so i think maybe we are using a differnet version of the calendar
   maybe? 🙁
 *  Thread Starter [ron24g](https://wordpress.org/support/users/ron24g/)
 * (@ron24g)
 * [12 years ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888304)
 * it may not be exactly line #632 in your editor because mines is modified. but
   the line of code your looking for begins with the <——Display Booking Inscructions——
   >
    just look around the 600 area line of code, just looked it up it s line 606
   in appointment-calender-shortcode.

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

The topic ‘Shortcode for "set an Appointment" button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/appointment-calendar.svg)
 * [Appointment Calendar](https://wordpress.org/plugins/appointment-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-calendar/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [ron24g](https://wordpress.org/support/users/ron24g/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/shortcode-for-set-an-appointment-button/#post-4888304)
 * Status: not resolved