Stunning photo & video albums for WordPress.
CoverFold shows a filterable grid of album covers. Click a cover and the whole album (photos, Media Library videos, YouTube, YouTube playlists and Vimeo) opens in a Foldbox lightbox. Use it as a block editor block, an Elementor widget or the [coverfold] shortcode.
CoverFold is the successor of Album Station and migrates its albums automatically.
| Path | What it does |
|---|---|
coverfold.php |
Plugin bootstrap |
includes/class-coverfold-post-type.php |
coverfold_album post type, coverfold_category taxonomy |
includes/class-coverfold-meta-box.php |
Album edit screen: media picker, video links |
includes/class-coverfold-album.php |
Album data and lightbox items |
includes/class-coverfold-videos.php |
YouTube / playlist / Vimeo parsing and cached remote data |
includes/class-coverfold-renderer.php |
Shared grid markup for block, widget and shortcode |
includes/class-coverfold-block.php, blocks/album-grid/ |
Block editor block (plain JS, no build step) |
includes/elementor/ |
Elementor widget (+ hidden Album Station compatibility widget) |
includes/class-coverfold-shortcode.php |
[coverfold] and legacy [feature_album] |
includes/class-coverfold-migration.php |
One-time Album Station migration |
assets/vendor/foldbox/ |
Foldbox 1.4.2 (MIT): lightbox and animated filter, copied from the npm package |
Open the demo in WordPress Playground: it installs the latest release with six sample albums and a demo page. (Playground downloads releases/latest/download/coverfold.zip, so it needs at least one release.)
issue → branch → pull request (Closes #N) → squash merge to main → automatic release → deploy (if enabled)
mainis protected. Changes go through pull requests, merged with squash. Repository admins can still bypass the rules.- Every PR closes an issue. The Linked issue check fails a PR without
Closes #N. One request with several changes = one issue per change, delivered in one PR. - CI runs on every PR and must pass: PHP 7.4–8.5 syntax and unit tests, PHPCS, PHPStan, JS/CSS lint and WordPress Plugin Check. Plugin Check fails when
Tested up toinreadme.txtis behind the latest WordPress, so bump it after testing each new WordPress version. - Releases are automatic. On each merge to
main, the Release workflow releases only if the plugin zip would change (everything.distignoredoesn't exclude). It bumps the version (patch by default, or minor/major with therelease:minor/release:majorlabel), writes the changelog (one line per closed issue; issues labelledchangelog:skipare left out) and the version intoreadme.txtand the plugin header, commits that tomain, tags it and publishes a GitHub release withcoverfold.zip. - Claude skills stay current. Once a month the Agent skills sync compares
.claude/skills/with WordPress/agent-skills and, when they changed, opens an issue and a PR. Close and reopen that PR so CI runs. - Deploys are off. The Deploy workflow targets WordPress.org SVN (
DEPLOY_METHOD=wporg) and runs only while the repo variableDEPLOY_ENABLEDistrue. Turn it on once the plugin is approved on WordPress.org and theSVN_USERNAME/SVN_PASSWORDsecrets are set.
composer install && npm ci| Command | What it checks |
|---|---|
composer lint |
PHP syntax |
composer phpcs |
WordPress Coding Standards (composer phpcbf fixes most issues) |
composer phpstan |
Static analysis |
composer test |
Unit tests |
npm run lint |
JS and CSS (Node 22.12 or newer) |
Foldbox is an npm dependency. The plugin ships a copy of its built files in assets/vendor/foldbox/, because the release zip has no node_modules. After changing its version in package.json (Dependabot opens a monthly PR for it), run:
npm ci && npm run vendor:foldboxand commit the result. This copies foldbox.min.js, foldbox.min.css and LICENSE, and updates the Foldbox version in class-coverfold-assets.php, readme.txt and this README. CI (npm run vendor:foldbox:check) fails while the shipped copy differs from the installed package.
A local site: cp .env.example .env && docker compose up -d, then open http://localhost:8000.
coverfold_post_type_args,coverfold_taxonomy_args– change registration argumentscoverfold_query_args– change the album querycoverfold_album_items– change an album's lightbox itemscoverfold_grid_html– change the grid markupcoverfold_playlist_max_videos– videos loaded per YouTube playlist (max 50)coverfold_deep_links– returnfalseto stop the address bar following the open album, photo and category (#album=slug&photo=2,#category=slug)
GPL-3.0-or-later. See LICENSE.
The screenshots and the Playground demo use photos from the WordPress Photo Directory, shared under CC0. Thank you to the photographers:
- Antonio López Chacón: Birds
- Brandon Zhang: Birds
- Mutebi Ivan Junior: Big animals
- RawKreative: Big animals
- Sujata Paul: Big animals
- jose3001: Waterfalls & forests
- dangrijal: Waterfalls & forests
- jbarquero90228: Waterfalls & forests, Beaches & sunsets
- Jessica Brenes: Waterfalls & forests, Flowers
- Mohithcharan V: Flowers
- Tawhid Sadman: Flowers
- jdaraya: Mountains & lakes
- xbullscm: Mountains & lakes
- vvega27: Mountains & lakes
- Francisco Mora: Mountains & lakes
- mhernandez10314: Beaches & sunsets
- Keily Nuñez Chaves: Beaches & sunsets
- Makarand Mane: Ceremony
- Anis: Ceremony, Celebrations
- Sharankrishna VP: Celebrations
- Bibek KC: Celebrations
- Javier Salinas: Celebrations
- Snehal Kashid: Indian flavours
- Tilak Bahadur Karki: Indian flavours
- Vishnu Chandra: Indian flavours
- Bigul Malayi: Indian flavours
- David Plaza: Bistro plates
- Joan Namunina: Bistro plates
- Swetha B Chandran: Bistro plates
- Alina Kakshapati: Bistro plates
Videos in the demo:
- Anna's hummingbird (Calypte anna) in the rain by Love Star Production, CC0, via Wikimedia Commons; trimmed and re-encoded as
demo/hummingbird-rain.mp4(Birds, a self-hosted Media Library video). - Blender open movies by the Blender Foundation / Blender Studio, Creative Commons Attribution, embedded from their official channels: Big Buck Bunny (Vimeo, Big animals), Spring (Waterfalls & forests), Sintel (Mountains & lakes) and Coffee Run (Bistro plates) on YouTube.