Shortcode Reference: [tpenrollments] - winkm89/teachPress GitHub Wiki

Description

Shows the enrollemt system in a post or page.

Parameters

term

(string) The term you want to show. If it is not set, the plugins displays the courses of the current term.

date_format

(string) This parameter defines the format for dates. Default is "d.m.Y H:i". For possible values have a look to the documentation of PHP’s date funciton.

order_parent

(string) This parameter defines the order of courses in the first level. Default is "type DESC, name".

order_child

(string) This parameter defines the order of courses in the second level (sub courses). Default is "name".

order_signups new since 6.0.0

(string) This parameter defines the order in the "your enrollments" and the "results" tab. Default is "con_id DESC".

Examples

Default:

[tpenrollments]

For changing the order of courses:

[tpenrollments order_parent="name DESC"]

Changelog

  • Since: 2.0.0
  • 3.1.2: Parameter „term“ added
  • 5.0.0: Parameter „date_format“ added
  • 5.0.17: Parameters „order_parent“ and „order_child“ added