i4w_list_subscriptions
Usage
This shortcode enables you to display a list of subscriptions to your subscribers, based on the currently logged in user.
By using different parameter combinations, this shortcode can be used to display different views of the subscriptions on file in your system, such as with the "status" filter set to "all", "active" or "inactive".
You can stipulate to display the list in ascending or descending order, based on the date the subscription was purchased.
You can also specify which fields you want included in the table display. The "official" list of accepted field names can be found in the Keap table schema documentation.
Every item in the generated table is CSS-enabled. If you would rather apply a different style, you can do so by passing those CSS definitions that you wish to override.
[ELSE_list_subscriptions] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| status | Filter the list based on valid status. Can be 'all', 'active' or 'inactive'. | all | No |
| columns | Columns for the generated table. | ProgramName,Status,BillingCycle,StartDate,PaidThruDate,NextBillDate,BillingAmt | No |
| headers | Column headers for the generated table. | Program Name,Status,Cycle,Start,Paid Thru,Next Bill Date,Amount | No |
| sort | Order of display, 'asc' for ascending and 'desc' for descending, based on the date the subscription(s) were added to the database. | asc | No |
Example
[i4w_list_subscriptions]
[i4w_list_subscriptions status='active']
[i4w_list_subscriptions sort='desc']
[i4w_list_subscriptions columns='ProgramName,Status' headers='Subscription,Status']
Notes
Since the shortcode may be used multiple times on a single page/post to represent different views, the CSS elements' ID's will be automatically randomized for each instance.