开发者 | WPdwarves |
---|---|
更新时间 | 2020年2月3日 16:26 |
PHP版本: | 4.1 及以上 |
WordPress版本: | 5.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[event_codes cat=’music’ count=’3’]
Shortcode Options:
[event_codes view= ‘list’ style= ‘basic’]
[event_codes view=‘list’ style=‘basic’]
[event_codes view=‘list’ style=‘big-date’]
[event_codes view=‘list’ style=‘card-overlay’]
2)Tabular
Tabular view has 2 styles: basic and shadow
[event_codes view=‘tabular’ style=‘basic’]
[event_codes view=‘tabular’ style=‘shadow’]
row value displays alternate gray shade for rows. This can be applied for both styles.
[event_codes view=‘tabular’ style=‘shadow’ row=‘alternate-gray’]
* Show Time (showtime)
This is used to display the time of the event. Option used is showtime and can have value true/false. Default is false.
[event_codes showtime=’true’]
* Description (description)
This controls whether the description of the event is to be shown or not. The option is description with value true/false. Default is true.
[event_codes description=’false’]
* Number of events (count)
Specifies the total number of events that are to be shown. Default is 5. Option value is count.
[event_codes count=’4’]
* Offset (offset)
Option offset is to skip a given number of events while listing. A good use case is when you want to split your event list into columns with multiple shortcodes. Default is 0.
[event_codes offset=’3’]
* Category (cat)
Displays the events based on the category. Can be used to display events belonging to different categories separated by comma. Option is cat.
[event_codes cat=’music,sports’]
* Exclude Category (skip-cat)
Skips displaying the events of a particular category. Option is skip-cat.
[event_codes skip-cat=’music’]
* Tags (tag)
Filters events based on tags. For multiple tags use commas. Option is tag
[event_codes tag=’music,sports’]
* Past Events (past)
This will display the list of all the past events. Option value is past & default is false.
[event_codes past=’true’]
* Featured Events (featured)
This will display the list of all the featured events. Default is false & option is featured.
[event_codes featured=’true’]
* Show View All (show-view-all)
This will decide if the the “View All” action should be displayed or no. Default is true & option is show-view-all.
[event_codes show-view-all=’false’]
* Show Load More (show-load-more)
This will decide if the the “Load More” action should be displayed or no. Default is true & option is show-load-more.
[event_codes show-load-more=’false’]
* Title (title)
This will allow to set a heading to the events displayed. If title is not entered as the shortcode option, then default value for future events will be “Upcoming Events” and in case of past and featured events the heading will be “Past Events” and “Upcoming Featured Events” respectively.
[event_codes title =’Events this Week’]
[event_codes view= ‘list’ style= ‘basic’]
[event_codes view=‘list’ style=‘basic’]
[event_codes view=‘list’ style=‘big-date’]
[event_codes view=‘list’ style=‘card-overlay’]
2)Tabular
Tabular view has 2 styles: basic and shadow
[event_codes view=‘tabular’ style=‘basic’]
[event_codes view=‘tabular’ style=‘shadow’]
row value displays alternate gray shade for rows. This can be applied for both styles.
[event_codes view=‘tabular’ style=‘shadow’ row=‘alternate-gray’]
* Show Time (showtime)
This is used to display the time of the event. Option used is showtime and can have value true/false. Default is false.
[event_codes showtime=’true’]
* Description (description)
This controls whether the description of the event is to be shown or not. The option is description with value true/false. Default is true.
[event_codes description=’false’]
* Number of events (count)
Specifies the total number of events that are to be shown. Default is 5. Option value is count.
[event_codes count=’4’]
* Offset (offset)
Option offset is to skip a given number of events while listing. A good use case is when you want to split your event list into columns with multiple shortcodes. Default is 0.
[event_codes offset=’3’]
* Category (cat)
Displays the events based on the category. Can be used to display events belonging to different categories separated by comma. Option is cat.
[event_codes cat=’music,sports’]
* Tags (tag)
Filters events based on tags. For multiple tags use commas. Option is tag
[event_codes tag=’music,sports’]
* Past Events (past)
This will display the list of all the past events. Option value is past & default is false.
[event_codes past=’true’]
* Featured Events (featured)
This will display the list of all the featured events. Default is false & option is featured.
[event_codes featured=’true’]
* Show View All (show-view-all)
This will decide if the the “View All” action should be displayed or no. Default is true & option is show-view-all.
[event_codes show-view-all=’false’]
* Show Load More (show-load-more)
This will decide if the the “Load More” action should be displayed or no. Default is true & option is show-load-more.
[event_codes show-load-more=’false’]
* Title (title)
This will allow to set a heading to the events displayed. If title is not entered as the shortcode option, then default value for future events will be “Upcoming Events” and in case of past and featured events the heading will be “Past Events” and “Upcoming Featured Events” respectively.
[event_codes title =’Events this Week’]
You can visit our plugin page(http://wpdwarves.com/event-codes-shortcodes-that-work-with-other-event-plugins) and contact us. We are always ready to help everyone.