{"id":40,"date":"2014-11-23T19:13:34","date_gmt":"2014-11-24T03:13:34","guid":{"rendered":"http:\/\/gohts.com\/wp\/?p=40"},"modified":"2019-02-01T14:38:02","modified_gmt":"2019-02-01T22:38:02","slug":"a-causevox-plugin-for-wordpress","status":"publish","type":"post","link":"http:\/\/gohts.com\/wp\/?p=40","title":{"rendered":"A CauseVox Plugin for WordPress"},"content":{"rendered":"<p>I&#8217;m working on a plugin for WordPress that will display the current fundraising events from CauseVox.com. This is for the website <a title=\"Unravel Pediatric Cancer\" href=\"http:\/\/unravelpediatriccancer.org\" target=\"_blank\">http:\/\/unravelpediatriccancer.org<\/a>.<\/p>\n<p>I am testing the output of the plugin in this post as well as documenting its use.<\/p>\n<p>The plugin, once installed and activated, adds a very simple thing called a &#8220;shortcode&#8221; to WordPress. Anywhere in a WordPress &#8220;post&#8221; or &#8220;page&#8221; the post\/page author can put the string:<\/p>\n<p>[[CausevoxFundraisersList campaign=<em>thecampaign<\/em>]]<\/p>\n<p>(Replace <em>thecampaign<\/em> with the name of the causevox campaign (for instance: bake2unravel)<\/p>\n<p>This will cause the plugin to insert the current information received from the causevox.com API.<\/p>\n<p>Here I will test the five valid campaigns as well as a bad one to make sure my error handling is working.<\/p>\n<h3>teamglitter2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=teamglitter2unravel]<\/p>\n<h3>bake2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=bake2unravel]<\/p>\n<h3>lemonade2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=lemonade2unravel]<\/p>\n<h3>rummage2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=rummage2unravel]<\/p>\n<h3>fundraise2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=fundraise2unravel]<\/p>\n<h3>badcampaign2unravel<\/h3>\n<p>[CausevoxFundraisersList campaign=badcampaign2unravel]<\/p>\n<hr>\n<p>&nbsp;<\/p>\n<p>More later,<\/p>\n<p>Jeff<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working on a plugin for WordPress that will display the current fundraising events from CauseVox.com. This is for the[&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[47],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paG9Xq-E","jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":14,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":168,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/168"}],"wp:attachment":[{"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gohts.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}