Blocks For Sermon Manager
Blocks For Sermon Manager displays sermons and sermon lists/grids from the Wordpress plugins Sermon Manager or MattyTap Sermons in Gutenberg editor.
Install in
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, as well as links to series, preacher etc. It can be
used with the sermon query returned within a page/post, or can be
configured with a custom sermon query. -
Sermon Table … where sermons are displayed in a table text-based
table with one sermon per row. This block has a full set of custom
query and colour / formatting controls to enable display of large
numbers of sermons on a single page in a way that is simple to read
down and yet looks attractive. -
Sermon Rows … where each sermon is displayed as a ‘banner’
with the sermon image in a vertical list, with details and links
to the fuller single sermon page, as well as links to series,
preacher etc. It can be used with the sermon query returned
within a page/post, or can be configured with a custom sermon query. -
Single sermon … to display one sermon with the sermon image,
all its details and a media player. It can be used with the sermon
query returned or can be configured with a custom sermon query.
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.
Support
If you have a problem or a feature request, please send a message to the
author using the ‘Support’ tab.
Demo
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.
Contributions
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.
Usage
Using the Block Replacements for Shortcodes
- Add one of the blocks in the place where you wish to use them, as you
would have previously added a shortcode. - Use the attributes to choose those attribute values you would have
previously put into the shortcode.- The default attribute values provided in the attributes respect the
default values in the shortcodes – you only need to set values you
want to be changed. - The display of sermons in the block editor will change to reflect
the attribute choices you make. The output should be very similar
to what you will see on the front end, but always check the front
end to be sure of how it appears. - As with the shortcodes, the appearance of the output of these
blocks can be changed via css style sheets. If you want to only
change the appearance for the output of the block and not the
original shortcodes, then precede each css style with the class
.b4sm. The same classes are used for styling as for the
original Sermon Manager shortcodes.
- The default attribute values provided in the attributes respect the
Using the new non-shortcode Sermon Display Blocks
- Add one of the blocks in the place where you wish to use it.
- If you are adding the block within a Block Template, then the block
will pick up the correct sermons in the front end, but in the back
end it will say that it can’t find any sermons. This is because it is
only a Template and does not have a sermon query for that page until
the Template is rendered on the front end. You can temporarily use
a custom query to get some idea what the output would look like. - Use the attributes to choose what to display of the available sermon
fields and sermon meta data. - If you want to instead show a customised set of sermons, use the
custom query option, which will reveal many query options to ‘drill
down’ to the set of sermons you want to show. - The block output on the front-end can be styled using css style sheets.
The blocks use similar css classes to Sermon Manager for the various
elements of each Sermon, but each style is preceded with .b4sm- instead
of the original .wpfc- – ie .wpfc-sermon is .b4sm-sermon if you wanted
to target the sermon wrapper. Each block has a CSS ID with which you
can target the block – eg. #b4sm-sermon-grid .b4sm-sermon would target
only the sermon wrapper in the sermon grid block. In this way we
ensure you are able to target styles across blocks or for particular
blocks, and all without interfering with existing Sermon Manager styles.
Using the Blocks for the Sermon Manager Fields to create custom output
The following allows you to re-create a sermon grid layout. This is just
an example – you can create whatever output look you want!
- Add an outer container (such as a Group or similar) to contain the output
In the advanced block attributes, set the class towpfc-sermons-container
if you want the internals to pick up Sermon Manager styles. - Within this outer container add a
Query Loop Block. - In the attributes pane of the Query Loop block, choose to do a Custom
Query - In the Custom Query, choose Sermons (or whatever of the taxonomies you
want. You can also use the other taxonomies to ‘drill down’ to only
display the particular sermons you want on that page. - In the Query add a container block (such as a Group). If you want to pick
up the predefined Sermon Manager styles, in the ‘Advanced’ attributes
section add a classwpfc-sermon(if it is a sermon you are rendering. - Optionally, if you want to separately style an outer and inner block,
add a container block within the previous block and set it’s class
towpfc-sermon-inner. - In the container block add a Sermon Image block (if wanted)
- If you are adding sermon details, add a container block and set it’s
class towpfc-sermon-mainif you want to pick up Sermon Manager styles - In this container add main sermon items like the title, the preacher,
the description, the bible passage or the series. If you are going to
not have the user click through to the sermon’s page to get the media,
add a sermon media block. You do not need to set any classes – we
automatically add the predefined Sermon Manager classes for styling. - If you want other sermon meta data, why not add a container block to
group your less prominent meta data, and potentially use the container
styling to give it a different background. - You can then also add meta data fields, like date, topic, bible book.
- You can use the prefix and suffix fields in each attribute to add in
labels for the fields, if you wish. Click in the prefix or suffix text
you add and use the floating menu to set to bold or italic or whatever. - You can then style each container or field as you wish to get the
results you want.
Providing 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 merely 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.
License
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.
Written by Joobi from the project's own listing. See the source page
1.0.5
2026-11-25
* Added a new non-shortcode block to display sermons as a text based table
with one sermon per row. This block has a full set of custom query and
colour / formatting controls to enable display of large numbers of sermons
in a way that is simple to read down and yet looks attractive.
* Added a new non-shortcode block to disply sermons as a vertical list of
banners, with image to the left and details to the right of each sermon.
* Fixed error in rendering other blocks that left the block css id out,
which caused css confusion from the original Sermon Manager css.
* Major refactoring of code into class hierarchies to use MVC to remove
duplication in similar blocks and reduce code complexity.
* Changed the CSS classes of the non-shortcode blocks so that every class
now starts with .b4sm- instead of .wpfc-. This means the class
names remain familiar, but the Sermon Manager styles no longer
adversely impact the block styles, and similarly any block style
changes will not impact any non-block Sermon Manager output.
* Resolved the issues with sermon video display, which was due to css style
clashes and, for the Plyr video renderer, failure to add the Plyr
scripts when blocks needed them added.
* Tested all the blocks on a variety of themes.
1.0.4
2026-11-06
* Added the abiity to do a custom query in the sermon_grid block. The
custom attributes you can configure reflect the custom attributes
which would be available in a block query loop, but tailored to the
sermon custom post type.
1.0.3
2026-10-20
* Added the List Sermon Podcasts block to call through to the [list_podcasts]
shortcode. The parameters for the original shortcode are provided for.
Corrected a layout problem with the b4sm_sermons_grid sermon inner so
that the border now appear on the .wpfc-sermon (outer) div rather than
the .wpfc-sermon-inner div which was picked up from the sermon manager
default styles.
Bump to 1.0.3 so that the changes are pushed out to all users.
1.0.2
2026-10-19
* Added all the advanced query filtering to the sermons block that calls
the [sermons] shortcode. All the parameters for the original shortcode
are now provided for.
Bump to 1.0.2 so that the changes are pushed out to all users.
1.0.1
2026-09-30
* Fixed error thrown by double name-spacing the filter used to sanitize the
output on the sermon-filters block.
Bump to 1.0.1 to be sure all users get the error fix.
1.0.0
2026-09-22
* Removed remaining WP Plugin Checker raised problems
Fixed an error where a final parameter was wrongly within a __() function
Created Language files (no translations at present)
Add Banner and icon needed by WordPress
Readied to submit as a new plugin to WordPress
0.0.4
2026-09-08
* Bug fixes; Produced a proper README.txt file.
Added new blocks that call through to each ShortCode so that we have
block versions for each shortcode.
Centralised repeated code for easier maintenance.
Fixed some style sheets that were not being correctly picked up.
Bring constants in Display Sermons shortcode into line with Sermon
Manager (otherwise default attribute settings are not changed)
Add ability to all fields to not display a field if the content is
empty.
0.0.3
2026-08-18
* Bump to show compatibility with WordPress 7.1
Update all code in single_sermon block to more closely match that in
the sermon-series-grid block, add in CSS for single sermon block, and
ensure it is working correcly.
2026-08-17
* Updated code to bring the single-sermon block closer to the sermon grid
block, and to try to resolve why it is failing to display.
0.0.2
2026-07-08
* Added blocks to use within a Query Builder block so that bespoke
layouts can be created.
0.0.1
2025-10-17
* Initial release – a basic block is tested and working.
Follow this listing's changes (Atom feed)