WP List of Sources releases
Shows a list of used links, pictures and tables in the current post
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/sfambach/wp-list-of-sources/releases/download/v1.0.1/wp-list-of-sources.zipA WordPress Gutenberg block that automatically scans the current post and displays a list of links, images, tables, or files found in the content.
Pure JavaScript in the editor (no build step, no NPM). Server-side rendering in PHP.
Author: Stefan Fambach
Version: 1.0.0
License: GPLv2 or later
Features
- One block, one source type — choose Links, Images, Tables, or Files in the block sidebar
- Table or bullet list output
- Optional URL cleanup — remove
http(s)://andwww.from link labels - Block styles — Default and Stripes table style
- Smart titles — uses link text, alt text, captions, or filenames where available
- Table anchors — table entries link to anchors in the post content
- Caching — output is cached and invalidated on save
- i18n ready — English strings with German translation included
Installation
- Download or clone this repository into
wp-content/plugins/wp-list-of-sources/ - Activate WP List of Sources in the WordPress admin under Plugins
- In the block editor, insert the List of Sources block
Usage
- Add the List of Sources block to your post or page
- In the sidebar under Source Settings, pick the source type:
- Links — external and internal hyperlinks (
<a href>), excluding file downloads - Images — embedded images (
<img src>) - Tables — tables in the post, with jump links to their position
- Files — download links (PDF, DOC, DOCX, XLS, ZIP, etc.)
- Links — external and internal hyperlinks (
- Under Display, choose table or bullet list and URL label options
To show more than one source type, add multiple blocks — one per type.
Editor preview
The block preview updates when you:
- first insert the block
- change block settings (source type, format, etc.)
- save the post (manual save, not autosave)
It does not refresh on every keystroke while editing content.
How content is categorized
| Content in post | Shown in |
|---|---|
| Image block (Insert from URL) | Images |
| Text link to a URL | Links |
| Link to PDF / DOC / ZIP | Files |
| Table block | Tables |
Linked image (<a><img></a>) |
Images and possibly Links |
File structure
wp-list-of-sources/
├── wp-list-of-sources.php # Block registration, data collectors, rendering
├── blocks.js # Gutenberg block editor UI
├── languages/
│ ├── wp-list-of-sources.pot
│ ├── wp-list-of-sources-de_DE.po
│ └── wp-list-of-sources-de_DE-*.json
└── README.md
Development
No build step required. Edit blocks.js and wp-list-of-sources.php directly.
After changing translatable strings, regenerate the .pot file and update the .po / .json files in languages/.
License
This plugin is open-source software licensed under the GPLv2 or later.
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.