Filtering, Sorting and other Customizations

The site-wide defaults can be set in your WordPress admin panel under Settings->MAK Jackrabbit. That page also contains some more information and some examples.

Items you don't enter in the shortcode will be used as entered on the site-wide defaults page. So if you entered the OrgID there, you don't have to enter it in the individual shortcodes.

Basic usage example:
[mak_jr orgid=12345 loc="Main" Cat1="This & That" Cat2="This/That" (...)]
The attribute names orgid, loc... are not case sensitive

OrgID: Your OrgID from Jackrabbit

ShowClosed:
To over-ride your Jackrabbit Classes system setting of not showing any full classes just add showclosed to the shortcode - like [mak_jr showclosed].
If set by default to show then use showclosed=0 or showclosed=false to not show here.

Loc, Session, Cat1, Cat2, Cat3, ClassDays, Gender, Room, InstructorID:
Filters to select certain classes only. Jackrabbit Help.
To stop Jackrabbit's default Cat1, Cat2 and Cat3 wildcard searching you can add the flags Cat1Exact, Cat2Exact or Cat3Exact respectively into the shortcode like this: [mak_jr Cat1="This" Cat1Exact] (these flags are also not case sensitive).

hidecols:
Comma-separated list of Jackrabbit default columns to hide in the output. Jackrabbit Help.

hidereg:
To hide the Register column just add hidereg to the shortcode.
If set by default to hide then use hidereg=0 or hidereg=false to show here.

showcols:
Comma-separated list of Jackrabbit default columns to add to the output. Jackrabbit Help.

sort:
Specify the sort order of the output. Jackrabbit Help.
To do a reverse sort just add " desc" behind the item to be sorted like "Cat1 desc,Location,Instructors"

registertext:
Change the Register column header name.

showlocname:
If you are showing the Location column in your table, setting this will display the Location Name instead of the Location Code. Just add showlocname to the shortcode.
If set by default to on, then use showlocname=0 or showlocname=false to show the location code here.

classlabel:
Change the Class column header name.

closed:
Change all 0s in the Openings column to display text such as "Full" or "Please Call" or any other text.

sessionlabel:
Change the Session column header name.

tuitionlabel:
Change the Tuition column header name.

additonal_query_string_items:
Advanced. Anything you want to add to the generated query string. Jackrabbit Help.

The following two are not of much use in the shortcode other than stopping the default values to be applied since you can just surround the shortcode with the HTML.
html_before_script
html_after_script

Examples:

[mak_jr orgid=12345 session="Fall 2020" Cat1="" Cat2="Adult" sort="Class,StartTime" html_before_script="" html_after_script=""]
The above shortcode modifies the default settings as follows: It sets the OrgID to 12345 and displays the "Fall 2020" session. It deleted the Cat1 filter that was set in the defaults, sets to only show the Cat2 "Adult", sorts by "Class" and "StartTime" and deletes any defaults set to html_before_script and html_after_script.

[mak_jr hidecols="Gender,StartDate" Room="Starlight" additonal_query_string_items="tuitionlabel=Monthly Tuition"]
The above shortcode modifies the default settings as follows: It hides the columns "Gender" and "Class Starts"(StartDate), limits the list to room "Starlight" and changes the label for tuiton to "Monthly Tuition"

Other Articles