1. Home
  2. Import Facebook Events (Import Social Events)
  3. Shortcodes

Shortcodes

Basic Short-code :

[facebook_events]

You can add the short-code [facebook_events] to any post or page on your site.

 

Display New Layout :

[facebook_events layout="style2"]

You can display the new layout by adding the [facebook_events layout=”style2″] shortcode to any post or page on your site.

[facebook_events layout="style3"]

You can display the new layout by adding the [facebook_events layout=”style3″] shortcode to any post or page on your site.

[facebook_events layout="style4"]

You can display the new layout by adding the [facebook_events col=”1″ layout=”style4″] shortcode to any post or page on your site.

 

Display layout :

[facebook_events col="2"]

The layout also comes complete with an advanced set of filtering options and these can also be used with the short-code. Above example that looks for events in column 2 .If you don’t put this option in short-code by default it will display in column 3 layout.and maximum column is 4 .

 

 

Limit for display events

[facebook_events posts_per_page="12"]

posts_per_page  used for number of events you want to show on one page. Above is example posts_per_page=″12″ it will display maximum 12 events.This option is optional.By default it will display 10 events on one page.

 

 

Dispaly events based on category

[facebook_events category="cat1"]

If you want to display events based on category then put  category=″cat1″ in short-code. Use commas when you want multiple categories like category=″cat1,cat2″ in your short-code

(Note:If category and its slug different then put category slug)

 

 

Display Past events

Show outdated(past) events ( events that have already happened).

[facebook_events past_events="yes"]

If you want to display only past events then put past_events=″yes″ in your short-code . If you want to display all events means past and upcoming then use past_events=″yes″ with  start and ending date .Here is example that display all events (past events +upcoming events).

[facebook_events past_events="yes" start_date="YYYY-MM-DD" end_date="YYYY-MM-DD"]

 

 

Display Events based on order

[facebook_events order="asc"]

order – Order of the events to be shown. Value can be asc or desc. Order is based on event date and post title.

 

 

Display Events based on orderby

[facebook_events order="asc" orderby="post_title"]

orderby – Order by event date and post title.Here is example to sort events by event  date  [facebook_events orderby=”event_start_date” ]

 

 

Short-code:

[facebook_events col="2" posts_per_page="12" category="cat1,cat2" past_events="yes" order="desc" orderby="post_title" start_date="YYYY-MM-DD" end_date="YYYY-MM-DD"]

 

Note : Make sure the starting and ending quote(") are the same in short-code attribute.

 

Was this article helpful to you? Yes 5 No 3

How can we help?