Blocks for Sermon Manager allows you to display sermons from the WordPress
Plugin Sermon Manager or Mattytap Sermons within the block builder of
your website without resorting to using the normal shortcodes.
This plugin provides three kinds of Blocks:
Blocks that bring the existing shortcodes to the Block editor
These blocks bring the shortcode attributes to the block so that you
can edit the attributes in the block editor and see the effect immediately.
The block will call through to the existing shortcode code in the background
when the page or post it is included in is displayed. With these blocks
you can replace the existing shortcodes with blocks and see
the same output as before. We provide blocks for the following
Sermon Manager shortcodes:
sermons … to display a list or grid of sermons, with many
filters to focus in on a specific set of sermons if needed. This is
in the block called “Display Sermons”
sermon_images … to display the images of each series, (not
sermons, despite the name) optionally with the series title and/or
description extract. This is in the block called “Sermon Images”
despite the obvious misnomer of the original short-code.
sermon_sort_fields … to display the filter bar that allows
the user to ‘drill down’ the list of sermons displayed. This is
in the block called “Display Filters” because that makes more sense!
list_sermons … to display a simple text list of series,
preachers, service types, bible books or topics from the sermon
taxonomies. This is in the block called “List Sermons”, again
despite the obvious misnomer of the original shortcode.
list_podcasts … to display a clickable list of podcast sources
for the site’s sermons, as set up in the Sermon Manager / Mattytap Sermons
settings. This is in the block called “List Sermon Podcasts”, which
despite the name only lists the podcast sources, not the actual
podcasts of the sermons.
Blocks that provide sermon grids and lists without dependence on the
existing shortcodes.
These have give a predefined output that should be suitable for most uses.
Currently we provide:
Sermon grid … where each sermon is displayed in a ‘card’
with the sermon image and details and a link to the fuller single
sermon page. It can be used with the sermon query returned within
a page/post, or can be configured with a custorm sermon query.
Single sermon … to display one sermon with the sermon image,
all its details and a media player.
These blocks can also be put into Block Theme templates for Sermon
Manager Sermons / Series / Book / Author / Service Type template pages
Field blocks
These blocks allow each field of Sermon Manager data to be included
within a bespoke ‘Query Loop’ block so that you can create your own
lists of sermons with bespoke look and feel from within the block
editor without having to do any coding.
The plugin also provides some example Query Loop patterns that use these
fields to output Sermon Grids, Sermon Lists and Single Sermons.
If you have a problem or a feature request, please send a message to the
author using the ‘Support’ tab.
These blocks are currently in use on the www.cambray.org church website.
On the Latest Sermons page: https://www.cambray.org/resources/latest-sermons/
The shortcode block Display Sermons is used for the Recent Sermons
at the top of the page, and the Sermon Images block is used for the
image grid of the past sermon series.
On the All Sermons page: https://www.cambray.org/sermons
The Sermon Grid block, preceded by the Sermon Filter
block are used to display the list of all sermons.
This plugin relies on the Sermon Manager or MattyTap Sermons plugin being
already installed and sermons already entered into the website. It is
purely to enable the display of sermons to be more ‘block friendly’ and
does not replace or change any of the functionality of these plugins.
.b4sm.The following allows you to re-create a sermon grid layout. This is just
an example – you can create whatever output look you want!
wpfc-sermons-containerQuery Loop Block.wpfc-sermon (if it is a sermon you are rendering.wpfc-sermon-inner.wpfc-sermon-main if you want to pick up Sermon Manager stylesProviding these blocks gives you infinite flexibility in the layout of the
lists of sermons you want to produce – just lay it out yourself! The
suggestion above for containers is only a helpful suggestion!
We also provide a number of Block Patterns for commonly used sermon
layouts – just drag and drop one in, change what details you want, and
it gives you a great shortcut to produce bespoke sermon list layouts.
The Query Loop container will automatically add pagination as needed.
If you want to provide the sermon filter bar, just add the filter bar
block before or after the container holding the query loop.
The plugin is released under the GNU General Public License. A
copy of this license can be found at the license homepage or in the top
comment within the blocks4sm.php file.