WordPress Plugin

A plugin is available to insert Algebrakit exercises into a WordPress page. The plugin provides two methods to insert an Algebrakit exercise:

  1. If your Wordpress uses the Gutenberg plugin and your Wordpress version is at least 5.0, you can use the custom Algebrakit block;
  2. Otherwise, you can use the Algebrakit shortcode.

Installation

For this guide, we assume that you have a basic understanding of WordPress and that your account is authorized to add new plugins. If not, these steps need to be executed by an administrator who has the correct permissions.

  1. Go to the GitHub repository for the plugin and download the plugin as a ZIP file. using the "Clone or download" button.
  2. Follow the instructions on the Wordpress support website. Automatic installation is not supported for this plugin, therefore the instructions in the Manual Upload via WordPress Admin or Manual Plugin Installation sections should be followed. After completing this process, the plugin should be activated and visible on the Plugin page of your WordPress site.
  3. Go to the Algebrakit plugin settings page, which should be located under "Algebrakit" in your WordPress settings menu. Here, you can set the API key that the plugin will use. Paste your API key into the field and save.

    The Algebrakit settings page

Using the Gutenberg block editor

  1. Create a new page or edit an existing one, and add a new block of the type "Algebrakit".
  2. A small form with two input fields will appear. Input your Exercise ID. You can leave the "Major Version" field empty.

    The Algebrakit settings page

  3. Save your page and preview it. The Algebrakit exercise will be created.

Using the Algebrakit shortcode

A shortcode is a textual instruction for Wordpress within square brackets. You can simply type it in a text block and Wordpress will replace it with an Algebrakit exercise.

The format of the shortcode is as follows:

[akit-exercise exercise-id="..." version="..." solution-mode=".."][/akit-exercise]

The attributes are:

Name Description
exercise-id Required. The unique ** Exercise ID** of the exercise.
version Optional. If you have multiple versions of the same exercise, this denotes the major version id.
solution-mode Optional. If set to 'true', the solution of the exercise will be shown.

Example:

[akit-exercise exercise-id="9e5aa8cd-1426-4845-88d6-459d3942ca75"][/akit-exercise]