# WordPress plugin

### Download the plugin

Get the plugin from [our Github repository](https://github.com/VoordeMensen/wordpress-plugin) [(direct download ZIP)](https://github.com/VoordeMensen/wordpress-plugin/archive/master.zip), uncompress and upload to your WordPress installation.

### Configuration

Click the VoordeMensen button down in the left sidebar of your WordPress dashboard, enter your shortform client name and choose what loader to use, pop-up or side-style.

![](https://1413156064-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ld8rUL_Nw-xlkKkoLIA%2F-M4Y5wbS0hTuFjhZ6L7o%2F-M4YQzJmprVqIqKVrKja%2FSchermafbeelding%202020-04-10%20om%2011.33.11.png?alt=media\&token=f1bf4af2-bb95-425a-9253-7ec896d6b73b)

### Connect pages or posts

Create pages (or posts) for your events and connect them using the metabox at the bottom of the page. The dropdown will automatically display a list of your events:

![](https://1413156064-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ld8rUL_Nw-xlkKkoLIA%2F-M4YSJ9ShTc28u9W33iy%2F-M4YUHApsK2ZtYq2yXzT%2Fimage.png?alt=media\&token=ccf6b6b0-594d-4604-9c23-121d6123d38f)

### Shortcodes

Now in your posts you can use the following shortcodes that will render event information and buttons to launch our sales screen for the chosen event (either in pop-up or side-style):

* `[vdm_event_name]` - the name of the event
* `[vdm_event_description]` - description of the event
* `[vdm_event_extra]` - extra info regarding the event&#x20;
* `[vdm_event_location]` - the location(s) of the event
* `[vdm_event_dates]` - the dates and times of the event
* `[vdm_tickettypes]` - ticket types and prices<br>
* `[vdm_buy button='Text on button']` - display a single buy button with the caption provided. The button will lead to the chosen event
* `[vdm_eventbuttons]` - display a list of buttons for each sub-event with date and timestamps
* `[vdm_cartbutton button='Text on button']` - display a button that leads to the contents of the shopping cart (regardless of event) &#x20;
* `[vdm_basketcounter]` - output the number of tickets in the basket - you could use this in your theme design to display a cart symbol with a bubble&#x20;

{% hint style="success" %}
If an event is sold out`[vdm_eventbuttons]`will display a non-clickable washed-out button, indicating the end-user that for that particular show no tickets are availble.
{% endhint %}

{% hint style="info" %}
You can use shortcodes in all WordPress files - i.e. headers by using the do\_shortcodes function:

`<?php echo do_shortcode("[vdm_basketcounter]");?>`
{% endhint %}
