Timely All-in-One Events Calendar Shortcodes

Below, you’ll find a detailed guide on how to add the Timely All-in-One Events Calendar 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 Timely All-in-One Events Calendar Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the Timely All-in-One Events Calendar Plugin and the shortcodes it provides:

Plugin Icon
Timely All-in-One Events Calendar

"Timely All-in-One Events Calendar is a user-friendly WordPress plugin. It simplifies event management by offering an integrated calendar system to schedule, manage, and publicize your events effectively."

★★★★✩ (1657) Active Installs: 70000+ Tested with: 6.3.2 PHP Version: 7.2
Included Shortcodes:
  • [all_in_one_event_calendar]
  • [all-in-one-event-calendar]

Timely All-in-One Events Calendar [all_in_one_event_calendar] Shortcode

The All-in-One-Event-Calendar shortcode allows you to embed calendars into your posts. It uses default parameters, which can be customized. When implemented, it adds JavaScript to the page and returns the calendar content.

Shortcode: [all_in_one_event_calendar]

Parameters

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

  • $id_base – The unique identifier for the shortcode
  • $atts – Array to define attributes in the shortcode
  • $content – Optional content that may be enclosed within the shortcode
  • $defaults – Default values for the shortcode attributes

Examples and Usage

Basic example – A simple shortcode usage that displays a calendar event based on the ID provided.

[all-in-one-event-calendar id=1 /]

Advanced examples

Displaying a calendar event by referencing both ID and category. The event will first try to load by ID, but if not found, it will try to load by category.

[all-in-one-event-calendar id=1 category="music" /]

Displaying a calendar event by referencing ID, category, and setting a custom title for the event. The event will first try to load by ID, but if not found, it will try to load by category, and the custom title will be displayed in any case.

[all-in-one-event-calendar id=1 category="music" title="Music Event" /]

Displaying a calendar event by referencing ID, category, setting a custom title, and limiting the number of events to display. The event will first try to load by ID, but if not found, it will try to load by category, and the custom title will be displayed in any case. Only the specified number of events will be displayed.

[all-in-one-event-calendar id=1 category="music" title="Music Event" limit=5 /]

PHP Function Code

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

Shortcode line:

add_shortcode( $id_base, array( $this, 'shortcode' ) );

Shortcode PHP function:

function shortcode( $atts, $content = null ) {
        $defaults = $this->get_defaults();
        $atts = shortcode_atts( $defaults, $atts );
        $this->add_js();
        return $this->get_content( $atts );
    }

Code file location:

all-in-one-event-calendar/all-in-one-event-calendar/app/view/embeddable.php

Timely All-in-One Events Calendar [all-in-one-event-calendar] Shortcode

The All-in-One-Event-Calendar shortcode is a powerful tool that triggers a function ‘run’. This function dispatches registry to execute a specific method.

Shortcode: [all-in-one-event-calendar]

Examples and Usage

Basic example – The shortcode below demonstrates a simple usage of the all-in-one-event-calendar plugin. It calls the run function without any parameters.

[all-in-one-event-calendar]

Advanced examples

The shortcode below shows an example of using the all-in-one-event-calendar plugin with a single parameter. Here, we are passing the ID of the event we want to display on the calendar.

[all-in-one-event-calendar id="123"]

For a more complex usage, the next shortcode demonstrates how to use the all-in-one-event-calendar plugin with multiple parameters. In this case, we are passing the ID of the event and the display mode for the calendar. The ‘mode’ parameter can take values such as ‘month’, ‘week’, ‘day’, etc.

[all-in-one-event-calendar id="123" mode="month"]

Finally, the shortcode below shows an advanced usage where we pass an array of IDs to the all-in-one-event-calendar plugin. This allows us to display multiple events on the calendar at once.

[all-in-one-event-calendar ids="123,124,125"]

PHP Function Code

In case you have difficulties debugging what causing issues with [all-in-one-event-calendar] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( $shortcode, array( $entity, 'run' ) );

Shortcode PHP function:

function run() {
        $argv = func_get_args();
        return $this->_registry->dispatch(
            $this->_registry_name,
            $this->_method,
            $argv
        );
    }

Code file location:

all-in-one-event-calendar/all-in-one-event-calendar/lib/event/dispatcher.php

Conclusion

Now that you’ve learned how to embed the Timely All-in-One Events Calendar 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 *