More on Pledge Drive Widgets and Snippets

Referring back to the previous article, you might ask how are snippets used in Pledge Drive 2? You simply paste the snippet inside a Pledge Drive 2 Progress Meter widget as in the picture below (click to enlarge). Go to the WordPress Admin “Presentation” menu and select the “Widgets” tab.

pledgedrive2-progress-meter-widget-snipit


What if you don’t use WordPress sidebar widgets? No problem, we still have you covered. Just paste your snippet into the Admin Options Pledge Drive form (or edit the default Schlomo Simpleton mentioned above) and insert the following PHP code anywhere in your theme’s template files (most likely in your own “sidebars” or, perhaps, a header). This will output your snippet, after the Pledge Drive plugin replaces all the variables in you snippet with their current values based on your supporters donations and subscriptions.

<?php print pd2_progress_meter() ?>

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*