Skip to main content

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

ParameterDescriptionDefaultRequired
statusFilter the list based on valid status. Can be 'all', 'active' or 'inactive'.allNo
columnsColumns for the generated table.ProgramName,Status,BillingCycle,StartDate,PaidThruDate,NextBillDate,BillingAmtNo
headersColumn headers for the generated table.Program Name,Status,Cycle,Start,Paid Thru,Next Bill Date,AmountNo
sortOrder of display, 'asc' for ascending and 'desc' for descending, based on the date the subscription(s) were added to the database.ascNo

Example

Shortcode
[i4w_list_subscriptions]
Shortcode
[i4w_list_subscriptions status='active']
Shortcode
[i4w_list_subscriptions sort='desc']
Shortcode
[i4w_list_subscriptions columns='ProgramName,Status' headers='Subscription,Status']

Notes

info

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.