How to upload a .puz file and embed a playable crossword in WordPress.
- In this repository, upload the
.puzinto thepuzzles/folder. - Use a date or slug as the filename (for ease of understanding). For example:
puzzles/2024-01-15.puz puzzles/dimi500.puz - Commit and push to
main. - Locate your puzzle in the files: https://github.com/TheStanfordDaily/crossword/tree/main -> click into the
puzzles/folder-> click the.puzfile that was just added -> copy the URL you’re on
- Open the embed generator: https://thestanforddaily.github.io/crossword/generate.html
- Paste your puzzle's public URL into the Puzzle file URL field.
- Select either "Daily Diminutive" or "Daily Crossword"
- Fill in the puzzle number
- Click Generate Embed Code — the generator fetches the puzzle to read its title.
- Click Copy to copy the HTML snippet.
- In the WordPress block editor, add a Custom HTML block where you want the puzzle.
- Paste the copied snippet. It looks like this:
<div style="max-width:760px; margin:0 auto;"> <iframe src="https://thestanforddaily.github.io/crossword/?puz=https%3A%2F%2F...&embed=1" width="100%" height="700" frameborder="0" scrolling="no" style="border:none; border-radius:8px; overflow:hidden;" title="Crossword — My Puzzle Title" allow="clipboard-write"> </iframe> </div>