Sermon Manager Shortcodes

Displaying Sermons

The sermons shortcode will allow users to easily display listings of sermons in pages or posts without knowing PHP or editing template files. Add the shortcode in a post or page, and use the arguments to query based on series, preacher, and many other possibilities (see the Arguments).

See the WordPress Codex for information on using the arguments.

Examples

This will list the 10 most recent sermons.
This will list the 20 most recent sermons.
This will list the 10 most recent sermons in the series “Winter Revival 2012”. You must use the Series “slug” in the shortcode.
This will list every sermon.
This will list the 10 most recent sermons by the preacher “Pastor Paul Chappell”. You must use the preacher “slug” in the shortcode.

Arguments

  • posts_per_page
  • id
  • order (options: DESC, ASC)
  • taxonomy (options: wpfc_sermon_series (default), wpfc_preacher, wpfc_sermon_topics, wpfc_bible_book, wpfc_service_type
  • tax_term (use the “slug” related to the taxonomy field you want to filter by; e.g. taxonomy=”wpfc_sermon_series” tax_term=”by-the-cross”)
  • tax_operator

Displaying a Grid of Series or Speakers

This will list all sermon series and their associated image in a grid.

There are several different optional parameters:

  • tax – options: wpfc_sermon_series (default), wpfc_preacher, wpfc_sermon_topics, wpfc_bible_book, wpfc_service_type
  • order – options: DESC, ASC (default)
  • orderby – options: id, count, name (default), slug, term_group, none
  • size – options: any size registered with add_image_size. The default is “sermon_medium”

An example that uses all options:

Simple List of Series or Speakers

This will list all series or speakers in a simple unordered list. There are several different optional parameters:

  • tax – options: wpfc_sermon_series (default), wpfc_preacher, wpfc_sermon_topics, wpfc_bible_book, wpfc_service_type
  • order – options: DESC, ASC (default)
  • orderby – options: id, count, name (default), slug, term_group, none

An example that uses all options:

Display the Latest Series Image

This will display information about the latest sermon series, including the image, title (optional), and description (optional). There are several different optional parameters:

  • image_class – options: any CSS class you want applied to the image. The default is ‘latest-series-image’
  • size – options: any size registered with add_image_size. The default is “large”
  • show_title – options: true or false to show or hide the series title (true is the default)
  • title_wrapper – options: p, h1, h2, h3, h4, h5, h6, div (default is h3)
  • title_class – options: any CSS class you want applied to the title wrapper. The default is ‘latest-series-title’
  • service_type – options: use the service type slug to show the latest series from a particular service type created in Sermons → Service Types
  • show_desc – options: true or false to show or hide the series description (false is the default)
  • wrapper_class – options: any CSS class you want applied to the div which wraps the output. The default is ‘latest-series’

An example that uses all options:

Sermon Sorting

It will add a couple of dropdown selections to quickly navigate to all sermons in a series or by a particular speaker. It can be used anywhere in your theme that supports shortcodes. The sort fields are now included in the archive page already.