A plugin to talk to Citizen Space via its API.
This plugin is designed to be used with any Citizen Space site running Citizen Space version 1.6.5 or greater. This may be:
With this plugin, you can use shortcodes to embed parts of the Citizen Space frontend into your own pages and posts. The following shortcodes are supported:
To use a shortcode, simply copy and paste the code (including its square brackets) into any page or post. When the page or post is displayed, WordPress will contact the Citizen Space site, request the appropriate information and seamlessly display it in place of the shortcode.
To turn a page in your WordPress site into a fully-functional consultation search page, just copy and paste the following three lines:
If you want to include a list of consultations based on a predefined search (rather than allowing the visitor to choose their search parameters using the form) you can pass an additional query parameter to the [citizenspace_search_results] shortcode, so it looks something like:
Obviously a query like this is fiddly to write by hand, so there's tool in the WordPress backend under Tools->Citizen Space to make this simpler. Just enter your search details like you would do on Citizen Space's consultation search page, and it will generate a shortcode for you. You can then embed this code in your page or post and you'll get an up-to-the-minute listing of all consultations matching your query.
By default, the consultations in the search results link directly to the consultation overview on the Citizen Space site. If you would prefer to embed the overview pages in your own site, so that visitors don't have to leave your site to read them, you can change this in Settings->Citizen Space.