ld_course_list

ld_course_list( array $attr )

Builds the ld_course_list shortcode output.


Description #


Parameters #

$attr

(array) (Required) An array of shortcode attributes.

  • 'include_outer_wrapper'
    (string) Optional. Whether to include outer wrapper. Default 'true'.
  • 'paged'
    (int) Optional. Is the query paged. Default false.
  • 'post_type'
    (string) Optional. Post type slug. Default 1.
  • 'post_status'
    (string) Optional. The post status. Default 'publish'.
  • 'order'
    (string) Optional. Designates ascending ('ASC') or descending ('DESC') order. Default 'DESC'.
  • 'orderby'
    (string) Optional. The name of the field to order posts by. Default 'ID'.
  • 'user_id'
    (int|false) Optional. User ID. Default false
  • 'mycourses'
    (string) Optional. Type of courses. Can be 'enrolled', 'not-enrolled'. Default null
  • 'status'
    (string) Optional. Status of the course. Default null
  • 'post__in'
    (string) Optional. List of posts IDs to check. Default null.
  • 'course_id'
    (string) Optional. Course ID Default empty.
  • 'meta_key'
    (string) Optional. Meta key Default empty.
  • 'meta_value'
    (string) Optional. Meta Value. Default empty.
  • 'meta_compare'
    (string) Optional. Meta compare operator Default empty.
  • 'tag'
    (string) Optional. Tag slug. Comma-separated (either), Plus-separated (all). Default empty.
  • 'tag_id'
    (int|array) Optional. An array of tag ids (AND in). Default 0.
  • 'tag__and'
    (string|array) Optional. An array of tag ids (AND in). Default empty.
  • 'tag__in'
    (string|array) Optional. An array of tag ids (OR in). Default empty.
  • 'tag__not_in'
    (string|array) Optional. An array of tag ids (NOT in). Default empty.
  • 'tag_slug__and'
    (string|array) Optional. An array of tag slugs (AND in). Default empty.
  • 'tag_slug__in'
    (string|array) Optional. An array of tag slugs (OR in). Default empty.
  • 'cat'
    (string) Optional. Category ID or comma-separated list of IDs (this or any children). Default empty.
  • 'category_name'
    (string) Optional. Use category slug (not name, this or any children). Default 0.
  • 'category__and'
    (string|array) Optional. An array of category IDs (AND in). Default empty.
  • 'category__in'
    (string|array) Optional. An array of category IDs (OR in, no children). Default empty.
  • 'category__not_in'
    (string|array) Optional. An array of category IDs (NOT in). Default empty.
  • 'tax_compare'
    (string) Optional. Taxonomy compare operator. Default 'AND'
  • 'categoryselector'
    (string) Optional. Category selector. Default empty.
  • 'show_thumbnail'
    (string) Optional. Whether to show thumbnail. Default 'true'.
  • 'show_content'
    (string) Optional. Whether to show content. Default 'true'.
  • 'author__in'
    (string) Optional. An array of author IDs to query from. Default empty.
  • 'col'
    (string) Optional. Column. Default empty
  • 'progress_bar'
    (string) Optional. Whether to show progress bar. Default 'false'.
  • 'array'
    (boolean) Optional. Unused. Default false.
  • 'course_grid'
    (string) Optional. Whether to show progress bar. Default 'true'.


Return #

(string) The ld_course_list shortcode output.


Source #

File: includes/shortcodes/ld_course_list.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.