Organizer Shortcodes
The organizer shortcode allows you to list and view the details of the organizers.
1. Submit Organizer Page
The Submit Organizers Page contains a form in which a user needs to fill in the
details of the event organizers.
To set up the Submit Organizer Page, paste the shortcode [submit_organizer_form], in the content area of the Submit Organizer Page.
2. Organizer Dashboard
The dashboard displays the list of all the organizers created by logged in users. A user can add, edit, delete, create duplicate organizers and view a particular organizer’s event list from the Organizer Dashboard.
To set up the Organizer dashboard page, paste the shortcode [organizer_dashboard], in the content area of the Organizer Dashboard Page.
3. Event Organizers
The event Organizer page displays event organizers list in alphanumeric order with an alphanumeric filter option.
To set up the Event Organizer page, paste the shortcode [event_organizers] in the content area of the Event Organizer page.
This is how the event organizer page would look on the frontend, which displays the available number of organizers along with the total number of events.
Event Organizers Shortcode Attributes
‘orderby’=>’title’
The Default value of ‘orderby’ is ‘title’. It can be set to title, ID, author, name, date, modified as per user choice for ‘orderby’ attribute.
‘order’ => ‘ASC’
Defaults to ‘ASC’. Can be set to ‘ASC’ or ‘DESC’ to choose the sorting direction.
‘show_thumb’=> true
This attribute is used to display the thumbnail of the organizer.Defaults to ‘true’. It can be set to ‘true’ or ‘false’.
‘show_count’=> true
This attribute is used to display the total number of events of each organizer. Defaults to ‘true’. It can be set to ‘true’ or ‘false’.
4. Event Organizers
In order to display a particular organizer on the event organizer page, a user can add the shortcode,[event_organizer id=ORGANIZER_ID].
id: To display or access a particular organizer’s details on the event Organizer page, a user needs to add the id of that particular organizer. The id section remains empty by default and it shows all the organizers list of the given argument. To get the organizer id, a user needs to place the cursor on the name of the organizer in the all organizers menu on the Admin dashboard.
5. Single Event Organizer
In order to display a particular event’s Organizer, a user can add the shortcode mentioned below.
[single_event_organizer id=”Event_ID”]
id: To display or access a particular event’s organizer/s on the page, a user needs to add the id of that particular event. The id section remains empty by default. To get the particular event id, a user needs to place the cursor on the name of the event in the all event menu on the Admin dashboard.
6. Arranging events on the Organizers details page
If a user wants to display events in descending or ascending order on the organizer details page then he or she needs to add the following code to the function.php file.
- code for upcoming event tab
add_filter("wpem_single_organizer_upcoming_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_upcoming"); function YOUR_THEME_SLUG_change_organizer_listing_order_upcoming($args){ //$args['orderby'] = 'YOUR CUSTOM ORDER'; return $args; }
- code for past event tab
add_filter("wpem_single_organizer_current_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_current"); function YOUR_THEME_SLUG_change_organizer_listing_order_current($args){ //$args['orderby'] = 'YOUR CUSTOM ORDER'; return $args; }
- current tab
add_filter("wpem_single_organizer_past_event_listing_query_args","YOUR_THEME_SLUG_change_organizer_listing_order_past"); function YOUR_THEME_SLUG_change_organizer_listing_order_past($args){ //$args['orderby'] = 'YOUR CUSTOM ORDER'; return $args; }