Blocks4CS allows you to display certain data from ChurchSuite on your
Wordpress website without resorting to embedding iframes. This plugin
provides Blocks that are easy to drop into any page or post. Each
block will, behind the scenes, request data from your ChurchSuite feed,
and will display the data returned in a similar way to the usual
ChurchSuite iframes, but natively to your website. Many aspects of the
display can be modified in your theme to make the display match your
website theme. The blocks allow you to use a range of attributes so that
you can display just the information you want for each part of your
website.
For the technical among you: This block works on the ‘server side’,
building the response which is delivered to your browser from churchsuite.
If you have a problem or a feature request, please send a message to the author.
Currently there is no demo site, but you can view examples on a church website:
This plugin relies on information provided by ChurchSuite using their
’embed’ JSON feed. Details of this JSON feed can be found here:
https://github.com/ChurchSuite/churchsuite-api/blob/master/modules/embed.md
For the Event Cards block, place the block into a page or post. Set
the name of your ChurchSuite feed in the Church Name attribute (ie.
the name that is at the start of your churchsuite url e.g.
https://mychurch.churchsuite.com – the name is ‘mychurch’).
You should see the block populate with events in the
editor straightaway
You can ude the various parameters in the side bar to refine your
search for events – see below for the many options
Because your calendar will have many events, we can limit the number
of events which are returned using the Number Of Events attribute
combined with the Days Ahead attribute. This latter attribute sets
how many days ahead you will look over to find a set of events from.
If this is set too large and you have a lot of events, the data
request from ChurchSuite will take too long to return. So just
experiment until you get the number of events over the time period
you want.
Other attributes allow you to refine the events returned as follows:
And, in the ‘Advanced’ group you can do further refinements:
Details of these attributes and their values can be found here:
https://github.com/ChurchSuite/churchsuite-api/blob/master/modules/embed.md
For the Event List block, place the block into a page or post. Set
the name of your ChurchSuite feed in the Church Name attribute (ie.
the name that is at the start of your churchsuite url e.g.
https://mychurch.churchsuite.com – the name is ‘mychurch’).
You should see the block populate with events in the
editor straightaway
The comments above about attributes you can set also apply to this
block. By default only a maximum of 5 days events are returned, but
this can be overridden using the attributes.
For the Calendar block , place the block into a page or post. Set
the name of your ChurchSuite feed in the Church Name attribute (ie.
the name that is at the start of your churchsuite url e.g.
https://mychurch.churchsuite.com – the name is ‘mychurch’).
You should see the calendar block populate with events in the
editor straightaway.
Fewer customization parameters are available for this block because
only a subset of the parameters listed above make sense for a monthly
calendar.
For the Smallgroups block,, place the block into a page or post. Set
the name of your ChurchSuite feed in the Church Name attribute (ie.
the name that is at the start of your churchsuite url e.g.
https://mychurch.churchsuite.com – the name is ‘mychurch’).
You should see the block populate with groups in the
editor straightaway.
The only parameter for SmallGroup lists that ChurchSuite supports is
the sites parameter, which you will find under the ‘Advanced’ section.
The plugin itself 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 blocks4cs.php file.