A lightweight WordPress plugin for controlled navigation in long articles, guides, case studies and other long-form content.
Current plugin version: 1.1.1.
The plugin does not automatically collect every h2/h3/h4 heading. Navigation is built only from elements explicitly marked by the author through HTML, Gutenberg, TinyMCE or shortcode. This keeps the navigation structure under editorial control.
Version 1.1.1 is a stable working baseline used on a live WordPress site. Existing settings, post metadata, anchor navigation and frontend behavior were preserved during an in-place update from the earlier working version.
Further features and interface changes are planned only when they are justified by practical use and testing.
- Manual navigation points through
class="c0dx-wln-point". - Optional short labels through
data-nav-title. - Stable generated anchor IDs with
-2,-3and further suffixes. - Repeated manual IDs are reported and excluded after their first occurrence without rewriting the source markup.
- Gutenberg integration limited to enabled post types.
- TinyMCE integration for the Classic Editor.
- Shortcodes for navigation points and manual panel output.
- PHP, JS and Auto source modes.
- Desktop and mobile display modes.
- Active-section highlighting, smooth scrolling and
aria-current="location". - Fixed-header scroll offsets.
- Per-post settings and diagnostics.
- Top-level admin menu and Plugins-screen Settings link.
- Admin CSS loaded only on the plugin settings and supported editor screens.
- Clean uninstall of the plugin option and post metadata.
- No jQuery, Composer, npm packages, external services or custom database tables.
- WordPress 6.0+
- PHP 7.4+
- MySQL according to the installed WordPress requirements
- Vanilla JavaScript
The current baseline has been manually tested on:
- WordPress 7.0
- PHP 8.4
- MySQL 5.7
- a live long-form article using manual anchors and frontend active-section highlighting
Other supported WordPress, PHP and database versions may work but have not all been tested in every editor and display mode.
Use the c0dx-wp-longread-navigator.zip asset attached to a GitHub Release when one is available. GitHub's automatically generated Source code archives are repository snapshots and contain the plugin inside a nested directory, so they are not intended to be uploaded directly through the WordPress plugin installer.
- Copy the
c0dx-wp-longread-navigatordirectory to/wp-content/plugins/. - Activate c0dx: WP Longread Navigator.
- Open c0dx Longread Nav in the main admin menu, or use Settings on the Plugins screen.
- Configure post types, source mode, display mode and appearance.
- Enable navigation in the target post or page metabox.
- Mark the required navigation points.
<h2 id="geo-aeo-basics" class="c0dx-wln-point" data-nav-title="What is GEO/AEO">
What is GEO/AEO and how it differs from ordinary SEO
</h2>If id is omitted, the plugin creates one automatically. Repeated generated slugs receive -2, -3 and further suffixes.
When the same manual id is used more than once, only the first navigation point is included. Later occurrences remain unchanged in the page markup and are listed in the post diagnostics.
Navigation point:
[c0dx_wln_point id="geo-aeo-basics" title="What is GEO/AEO" level="1" tag="h2"]What is GEO/AEO and how it differs from SEO[/c0dx_wln_point]
Manual panel output:
[c0dx_wln_nav]
Bug reports and focused improvement proposals are welcome through GitHub Issues. A useful report should include:
- WordPress and PHP versions;
- editor or page builder;
- selected source and display modes;
- a minimal markup or shortcode example;
- the expected and actual behavior;
- relevant browser-console or PHP log messages with secrets removed.
See CONTRIBUTING.md before preparing a pull request.
Do not publish credentials, tokens, private URLs, customer data or complete production logs in issues. See SECURITY.md for the reporting policy.
README.md
README.ru.md
LICENSE
CHANGELOG.md
CONTRIBUTING.md
SECURITY.md
.gitattributes
.gitignore
.github/
ISSUE_TEMPLATE/
PULL_REQUEST_TEMPLATE.md
c0dx-wp-longread-navigator/
c0dx-wp-longread-navigator.php
uninstall.php
readme.txt
assets/
docs/
Installable ZIP archives are release artifacts and are not stored in the source tree.
MIT. See LICENSE.