News Quiz Shortcode

Description

This shortcode allows you to embed a news quiz created in accordance with Mother Jones’ news quiz library.

Installation

  1. In the WordPress Dashboard go to Plugins, then click the Add Plugins button and search the WordPress Plugins Directory for News Quiz Shortcode. Alternatively, you can download the zip file from this Github repo and upload it manually to your WordPress site.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Create a Google Spreadsheet following Mother Jones’ instructions
  4. Place the ID of the Google Spreadsheet in the shortcode:

    [quiz key="0AvfAWkLLRik_dGtjRVNUamJwbE1wRWxtVVRURG1UU0E" align="alignright"]

FAQ

What are the shortcode’s attributes?
  • key: (required) A link to a publicly published google doc from which to pull the quiz content from.
  • title: (optional. default: blank) Give your quiz a title.
  • lede: (optional. default: blank) A subhead for the quiz.
  • align: (optional. default: alignnone) Align the quiz with alignleft,alignright or alignnone.
  • layout: (optional. default: sidebar) The values either fullwidth or sidebar.
  • answerstyle: (optional. default: bullet) Choose between alpha,bullets,roman, or numbers.
  • byline: (optional. default: blank) Give an author byline at the bottom.
  • source: (optional. default: blank) Attribute a datasource.
How do I style the quiz?

The quiz comes with a very limited default stylesheet. You can style the quiz by editing your theme’s stylesheet.

Contributors & Developers

“News Quiz Shortcode” is open source software. The following people have contributed to this plugin.

Contributors

Translate “News Quiz Shortcode” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.2

  • rename CSS classes from .largo-interactive- to .news-quiz-
  • rename PHP function prefix from largo_interactive_quiz_ to news_quiz_

0.1

  • Initial release