Add an interactive checklist to WordPress walkthroughs
Published Updated 2 min read
A walkthrough on a WordPress page is static: paragraphs, numbered lists and screenshots that look the same as when the page loaded. In a game guide, a setup tutorial or any long how-to, readers lose their place the moment they switch tabs, scroll back up or come back the next day.
What they need is a checklist that remembers. Not a course platform or a project tool or anything behind a login: a list of steps where clicking marks them done and they stay done on reload. WordPress has nothing like it, and the plugins that come closest bury it inside booking systems, learning platforms or page builders.
A shortcode does it in one PHP file. Wrap your steps in [checklist] tags and each becomes a checkbox, saved in the browser's localStorage, so nothing is written to your database, nobody needs an account, and a reader who comes back tomorrow finds everything as they left it.
A numbered list forgets where you were
A numbered list shows the steps and nothing else. Start a guide on Monday, get halfway, close the tab, and on Tuesday you are back at step one with no idea where you stopped.
Some readers keep notes or highlight on screen; most scroll back looking for their place, which is friction at exactly the wrong moment. Over five steps it is tolerable. Over a forty-step game walkthrough or an installation tutorial with branching paths, it gets in the way.
Keeping state in the browser makes it local, fast and private. It also means progress does not follow the reader to another device, which for most walkthroughs is a fair trade: simpler than a login wall, and free.
Checkboxes that survive a reload
Inside [checklist], type plain lines (each non-empty line becomes an item) or use a proper <ul> or <ol>, and the plugin reads the <li> elements. It works in the classic editor and, through a Shortcode block, in the block editor, with identical output.
Ticking an item saves it to localStorage under a key built from the post ID and a sanitised copy of the step text, so the same step on two different posts never collides. Unticking removes it. A line under the list counts completed steps out of the total as you go, and done steps are struck through and faded so what is left stands out.
The CSS and JavaScript only load on pages that use the shortcode. There are no external requests and no database writes.
One browser, no locked steps, no reporting
Progress is per browser. Clearing browser data, using a private window or switching browser starts the list again, and someone who moves from phone to laptop starts from the top. Syncing across devices would need accounts and server-side storage.
Several checklists can share a page and track separately, provided their item texts differ. Two items with identical text share a key, so ticking one shows both ticked after a reload; keep labels distinct.
Every box is clickable from the start; nothing locks step 3 until steps 1 and 2 are done. Nothing reports back to you either: no completion event, certificate or analytics. The list tells the reader where they are and nobody else.
A follow-up message can add a reset button ([checklist reset_label='Start over']), a sticky progress bar across the top of long guides, or a group attribute so each section of a page tracks its own list.
What you get
Included
- [checklist] shortcode that renders any list of steps as interactive checkboxes
- Persistent state via localStorage: checked items stay checked on reload, no account required
- Live progress counter that updates as steps are completed or unchecked
- Scoped CSS with strikethrough and opacity change for completed steps
Not included
- Cross-device sync: state is per-browser, not tied to a user account
- Locked or sequential steps: all items are independently clickable from load
- Completion tracking or analytics: no server-side reporting
- Multiple independent checklists per page without a group attribute extension
Build it in Steem
The button opens the builder with this guide's prompt filled in, so you can change anything before it runs. Nothing is built, and nothing is charged, until you send it.
Read the prompt (342 words)
Build a WordPress plugin called Walkthrough Checklist. Plugin Name: Walkthrough Checklist. Description: A shortcode that turns a list of steps into a persistent interactive checklist using browser localStorage. Single PHP file. No external dependencies. Register a shortcode 'checklist' using add_shortcode. The shortcode accepts inner content. If the content contains <li> tags, parse items from the text inside each <li>. If it contains no <li> tags, split on newlines and treat each non-empty trimmed line as one item. Strip HTML tags from each item to get clean text. For each item, generate a data-key by combining the post ID from get_the_ID(), a hyphen, and a sanitized version of the item text: strtolower, remove characters that are not alphanumeric or hyphens, truncate to 64 characters. This ensures keys are unique per post and do not collide across posts. Render each item as: <div class="wc-step"><label><input type="checkbox" class="wc-checkbox" data-key="{key}"> {item text}</label></div> Below all items, render: <p class="wc-progress"><span class="wc-done">0</span> of <span class="wc-total">{total}</span> steps completed.</p> Wrap everything in <div class="wc-checklist">. Use a module-level static boolean $enqueued = false. The first time the shortcode fires, set it to true and register wp_footer and wp_head hooks. In the wp_head hook, output a <style> block with: .wc-checklist { margin: 1.5em 0; } .wc-step { margin: 0.5em 0; } .wc-step label { cursor: pointer; display: flex; align-items: flex-start; gap: 0.5em; } .wc-step input[type=checkbox] { margin-top: 0.2em; flex-shrink: 0; } .wc-step.wc-checked label { text-decoration: line-through; opacity: 0.5; } .wc-progress { font-size: 0.9em; color: #666; margin-top: 1em; } In the wp_footer hook, output a <script> block that: on DOMContentLoaded, iterates every .wc-checkbox element and checks localStorage.getItem(el.dataset.key). If the value equals '1', sets el.checked = true and adds the class wc-checked to the parent .wc-step. After restoring all states, calls updateProgress() for each .wc-checklist. Adds a 'change' event listener on each .wc-checkbox that: calls localStorage.setItem(key, '1') and adds wc-checked to the parent .wc-step if checked; calls localStorage.removeItem(key) and removes wc-checked if unchecked; then calls updateProgress(checklist). The updateProgress function takes a .wc-checklist element, counts total .wc-checkbox children, counts checked ones, and updates the .wc-done span text.
Steem