[Appointments+] Create a shortcode to display a single day in Appointments+

Our store has special guests that work for only one day, so it would be a cleaner display if we could display the appointment slot selection grid for only one day. … Thank you!

  • Nastia
    • Support Rock Star

    Hello Missa

    Hope you are doing well!

    Our developers have already provided a quick fix in the past. Please add the following code into the functions.php file of your child theme or add it as a mu-plugin

    add_shortcode( 'wpmudev_app_custom_timetable', function(){

    $capacity = 0;
    $dates = array(
    strtotime("+1 day")

    $out = '<div class="wpmudev_app_timetables">';

    foreach ( $dates as $date ) {

    $date_formatted = date( 'F j, Y', $date );
    $out .= "<h3>For {$date_formatted}</h3>";
    $out .= appointments_get_timetable( $date, $capacity );


    $out .= '</div>';

    <script type="text/javascript">
    $( '.wpmudev_app_timetables .app_timetable' ).show();
    $out .= ob_get_clean();

    return $out;

    } );

    Please use the following shortcodes:


    Please note this snippet will book only default service. If you wish to have this option for multiple services, it will require lots of coding. Please let us know so we could glad our developers in here so they could provide you some feedback.

    Hope this helps!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.