开发者 |
damedialimited
daveboulden |
---|---|
更新时间 | 2024年8月2日 23:08 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[damlgiglist group_by="Month|Year|None" sort_by="date_asc|date_desc" list_title="My gig list" start_date="tomorrow" end_date="last day of December this year" limit="10" show_headers="Y|N"]
The group_by
parameter will group the gigs by month or year if "Month" or "Year" is supplied as the parameter. Any other value will suppress all grouping.
The sort_by
parameter will sort the gigs ascending date "date_asc" is supplied as the parameter or descending date if "date_desc" is supplied.
The list_title
parameter can be used to override the plugin settings default. Specifying an empty title remove the title altogether even if there is a value in the plugin settings default title.
The start_date
and end_date
parameters are used to set which gigs are shown. You can use textual PHP format relative dates - see more information here. If you require a fixed date, it must be specified in the format: YYYY-MM-DD
. Any gigs outside the supplied from and to dates will not be shown. The date parameters default to the default dates set in the Gig List Settings admin page if no values are supplied or the parameters are omitted.
The limit
parameter will limit the number of gigs shown to the value supplied (i.e. if limit="5" then only the first 5 matching gigs will be shown). Omitting this parameter will show all mnatching gigs.
The show_headers
parameter will show the column headers in the gig list display when the paramneter is set to "Y" and will hide them when set to "N".
Widget
Since v1.6.0, a widget is now provided with the same options as the Shortcode Builder page, but inside a widget that can be placed in any sidebar area on the WordPress Widgets admin screen.
Templates
Since v1.1.0, the plugin now supports theming by overriding the Gig, Venue and Gig List templates (only the post archive template, not the shortcode as of yet). Simply copy the appropriate template from the /inc/templates
directory within the plugin to the root of your current theme and adapt it to your own needs or to match your chosen theme. We strongly recommend you only do this with a child theme so that your new template will not be lost when updating the theme.
CSV Import
From v1.7.0, Gigs and Venues may now be imported from CSV files. A "DAMedia GigList CSV" importer is available within the "Tools > Import" admin menu page. The import page also offers links to download sample Gig and Venue CSV files to use as the basis of your own imports. All fields and optional featured images (by loading from a specified URL) can be loaded via tese CSV files.
The Start Date and End Date fields offer many options to set the date limits of the displayed gig list. For this specific option, choose "First day of this year" for the Start Date and "Last day of this year" for the End Date.
There are currently three options: