Meeting Scheduler By Vcita Shortcodes

Below, you’ll find a detailed guide on how to add the Meeting Scheduler By Vcita Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Meeting Scheduler By Vcita Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Meeting Scheduler By Vcita Plugin and the shortcodes it provides:

Plugin Icon
Online Booking & Scheduling Calendar for WordPress by vcita

"Online Booking & Scheduling Calendar for WordPress by vcita is a robust plugin that enhances your WordPress site with a professional booking and scheduling system. Perfect for managing meetings efficiently."

★★★☆✩ (117) Active Installs: 3000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [WPSHD_VCITA_WIDGET_SHORTCODE]
  • [WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE]

Meeting Scheduler By Vcita [WPSHD_VCITA_WIDGET_SHORTCODE] Shortcode

The ‘meeting-scheduler-by-vcita’ shortcode is used to add a contact form widget to a WordPress site. This shortcode fetches the ‘uid’ from the saved widget settings, sets the widget type as ‘contact’, and defines its width and height. It then calls the ‘wpshd_vcita_create_embed_code’ function to create and return the embed code for the widget.

Shortcode: [WPSHD_VCITA_WIDGET_SHORTCODE]

Parameters

Here is a list of all possible WPSHD_VCITA_WIDGET_SHORTCODE shortcode parameters and attributes:

  • id – unique identifier of the contact form
  • type – determines the type of the widget, default is ‘contact’
  • width – sets the width of the widget, default is ‘100%’
  • height – sets the height of the widget, default is ‘450px’

Examples and Usage

Basic example – A simple shortcode to add a contact form with default width and height parameters.

[wpshd_vcita_add_contact]

Advanced examples

1. Changing the default width and height of the contact form. This example changes the width to 80% and height to 500px.

[wpshd_vcita_add_contact width="80%" height="500px"]

2. Specifying the type of widget to display. This example displays a meeting scheduler instead of the default contact form.

[wpshd_vcita_add_contact type="meeting"]

3. Combining multiple parameters. This example displays a meeting scheduler with a width of 80% and height of 500px.

[wpshd_vcita_add_contact type="meeting" width="80%" height="500px"]

PHP Function Code

In case you have difficulties debugging what causing issues with [WPSHD_VCITA_WIDGET_SHORTCODE] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode(WPSHD_VCITA_WIDGET_SHORTCODE, 'wpshd_vcita_add_contact');

Shortcode PHP function:

                    function wpshd_vcita_add_contact($atts)
{
  $wpshd_vcita_widget = (array)get_option(WPSHD_VCITA_WIDGET_KEY);
  $id = WPSHD_VCITA_WIDGET_DEMO_UID;

  if (isset($wpshd_vcita_widget['uid']) && $wpshd_vcita_widget['uid']) {
    $id = $wpshd_vcita_widget['uid'];
  }

  extract(shortcode_atts(array(
    'type' => 'contact',
    'width' => '100%',
    'height' => '450px',
  ), $atts));

  return wpshd_vcita_create_embed_code($type, $id, $width, $height);
}
                    

Code file location:

meeting-scheduler-by-vcita/meeting-scheduler-by-vcita/vcita-scheduler.php

Meeting Scheduler By Vcita [WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE] Shortcode

The Meeting Scheduler by vCita plugin shortcode enables users to add a calendar widget to their website. This shortcode retrieves the user’s unique ID and embeds a customizable meeting scheduler widget. The widget’s dimensions are adjustable, providing flexibility in its placement and appearance.

Shortcode: [WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE]

Parameters

Here is a list of all possible WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE shortcode parameters and attributes:

  • type – Defines the type of widget, default is ‘scheduler’
  • width – Sets the width of the widget, default is ‘100%’
  • height – Determines the height of the widget, default is ‘500px’
  • id – Unique identifier for the user’s widget

Examples and Usage

Basic example – The following shortcode will display the meeting scheduler by vCita with the default width and height parameters.

[add_shortcode(WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE, 'wpshd_vcita_add_calendar') /]

Advanced examples

In this example, we’re customizing the width and height of the vCita meeting scheduler. The width is set to 80% and the height to 600px.

[add_shortcode(WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE, 'wpshd_vcita_add_calendar' type='scheduler' width='80%' height='600px') /]

Here, we’re using the shortcode to display the vCita meeting scheduler with a specific user ID. Note that the user ID must be valid and associated with a vCita account.

[add_shortcode(WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE, 'wpshd_vcita_add_calendar' uid='your_vcita_user_id') /]

Please replace ‘your_vcita_user_id’ with your actual vCita user ID. The scheduler widget will display the calendar associated with this user ID.

PHP Function Code

In case you have difficulties debugging what causing issues with [WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode(WPSHD_VCITA_CALENDAR_WIDGET_SHORTCODE, 'wpshd_vcita_add_calendar');

Shortcode PHP function:

                    function wpshd_vcita_add_calendar($atts)
{
  $wpshd_vcita_widget = (array)get_option(WPSHD_VCITA_WIDGET_KEY);
  $id = WPSHD_VCITA_WIDGET_DEMO_UID;

  if (isset($wpshd_vcita_widget['uid']) && $wpshd_vcita_widget['uid']) {
    $id = $wpshd_vcita_widget['uid'];
  }

  extract(shortcode_atts(array(
    'type' => 'scheduler',
    'width' => '100%',
    'height' => '500px',
  ), $atts));

  return wpshd_vcita_create_embed_code($type, $id, $width, $height);
}
                    

Code file location:

meeting-scheduler-by-vcita/meeting-scheduler-by-vcita/vcita-scheduler.php

Conclusion

Now that you’ve learned how to embed the Meeting Scheduler By Vcita Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *