get_display_records — Place HTML for records into an array.

Added in version 3.2.

View-related functions

Summary

get_display_records($recordType, $count = 3, $partialPath = null, $partialParams = array(), $query = array())

Place HTML for records into an array.

Parameters:
  • $recordType (string) – Type of record to display (Item, Collection, etc.)

  • $count (int) – Maximum number of records to display

  • $partialPath (string|null) – Custom partial to use to display each record; pass null for the default

  • $partialParams (array) – Parameters to pass to the partial

  • $query (array) – Query passed to get_records to get the records to display; default is “random featured”

Returns:

array

Usage

Examples

See Also