WordPress.org

Plugin Directory

Event post

Add some meta-datas to posts to convert them into full calendar events : begin, end, location, color

Shortcodes

The plugin comes with three shortcodes wich allows to :

  • [events_list] : display a list of events
  • [events_map] : display a map of events
  • [events_cal] : display a calendar of events

Available options :

[events_list]

Query parameters
  • nb=5 (number of post, -1 is all, default: 5)
  • future=1 (boolean, retreive, or not, events in the future, default = 1)
  • past=0 (boolean, retreive, or not, events in the past, default = 0)
  • cat='' (string, select posts only from the selected category, default=null, for all categories)
  • tag='' (string, select posts only from the selected tag, default=null, for all tags)
  • geo=0 (boolean, retreives or not, only events wich have geolocation informations, default=0)
  • order="ASC" (string (can be "ASC" or "DESC")
  • orderby="meta_value" (string (if set to "meta_value" events are sorted by event date, possible values are native posts fileds : "post_title","post_date" etc...)
Display parameters
  • thumbnail="" * (Bool, default:false, used to display posts thumbnails)*
  • thumbnail_size="" * (String, default:"thmbnail", can be set to any existing size : "medium","large","full" etc...)*
  • excerpt="" * (Bool, default:false, used to display posts excerpts)*
  • style="" * (String, add some inline CSS to the list wrapper)*
  • type=div (string, possible values are : div, ul, ol default=div)
  • title='' (string, hidden if no events is found)
  • before_title="<h3>" (string (default <h3>)
  • after_title="</h3>" (string (default </h3>)
  • container_schema="" (string html schema to display list)
  • item_schema="" (string html schema to display item)

example : [events_list future=1 past=1 cat="actuality" nb=10]

container_schema default value :

<%type% class="event_loop %id% %class%" id="%listid%" style="%style%" %attributes%> %list% </%type%>

item_schema default value :

<%child% class="event_item %class%" data-color="%color%"> <a href="%event_link%"> %event_thumbnail% <h5>%event_title%</h5> </a> %event_date% %event_cat% %event_location% %event_excerpt% </%child%>

[events_map]

  • nb=5 (number of post, -1 is all, default: 5)
  • future=1 (boolean, retreive, or not, events in the future, default = 1)
  • past=0 (boolean, retreive, or not, events in the past, default = 0)
  • cat='' (string, select posts only from the selected category, default=null, for all categories)
  • tag='' (string, select posts only from the selected tag, default=null, for all tags)
  • tile='' (string (default@osm.org, OpenCycleMap, mapquest, osmfr, 2u, satelite, toner), sets the map background, default=default@osm.org)
  • title='' (string (default )
  • before_title="<h3>" (string (default <h3>)
  • after_title="</h3>" (string (default </h3>)** thumbnail="" * (Bool, default:false, used to display posts thumbnails)
  • excerpt="" * (Bool, default:false, used to display posts excerpts)*

example: [events_map future=1 past=1 cat="actuality" nb="-1"]

[events_cal]

  • cat='' (string, select posts only from the selected category, default=null, for all categories)
  • date='' (string, date for a month. Absolutly : 2013-9 or relatively : -1 month, default is empty, current month
  • datepicker=1 (boolean, displays or not a date picker
  • mondayfirst=0 (boolean, weeks start on monday, default is 0 (sunday)

example: [events_cal cat="actuality" date="-2 months" mondayfirst=1]

Hooks

Filters

  • eventpost_printdate
  • eventpost_printlocation
  • eventpost_params
  • eventpost_get
  • eventpost_retreive
  • eventpost_multisite_get
  • eventpost_multisite_blogids
  • eventpost_list_shema

Actions

  • before_eventpost_generator
  • after_eventpost_generator

Requires: 3.8 or higher
Compatible up to: 4.1.4
Last Updated: 2015-3-11
Active Installs: 300+

Ratings

4.2 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1