Pure Charity Sponsorships Plugin
A collection of shortcodes to show sponsorships on your WordPress site.
It depends on the Pure Charity Base Plugin being installed and it’s credentials configured to work.
Features
- The plugin enables 2 shortcodes for use in any page you want to.
- Possibility to configure between 3 display styles.
- Possibility to configure the plugin to use custom fields you have on the app, when using the third layout option.
- Possibility to customize the main color of the elements.
- Possibility to add a custom image to show as brand on the views.
Installation
1. Download the plugin
2. Copy the `/purecharity-wp-sponsorships` folder to the `/wp-content/plugins` on your WP install
3. Activate the plugin through the ‘Plugins’ menu in WordPress
4. You’re done!
Template Tags
Sponsorships
Function: pc_sponsorships()
Parameters:
- program_id – Sponsorship program slug
Sponsorship
Function: pc_sponsorship()
Parameters:
- sponsorship_id – Sponsorship slug
Shortcodes
Sponsorships Listing
[sponsorships program_id=X]
Possible parameters:
- program_id – (Required) The sponsorship program id
- per_page – The amount of records to fetch per page
- reject – (1,2,3) List of IDs of sponsorships to reject on the listing
- status- To list only children that are currently available (status=available)
Single Child
Possible parameters:
- sponsorship – The id of the child to show