Add article versioning support via doc_version taxonomy#285
Draft
Add article versioning support via doc_version taxonomy#285
Conversation
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
…checks, improve accessibility Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multiple versions of the same article
Add article versioning support via doc_version taxonomy
Jan 22, 2026
Introduces functions and filters to ensure documentation content is shown only for the selected version. Adds `wedocs_filter_pages_by_version` and `wedocs_filter_query_by_version` to filter sidebar, child lists, shortcodes, and search results by version. Also adds helpers for version selector display and updates technical documentation with quick start and summary guides.
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements multi-version documentation support to maintain separate docs for different software releases, similar to Symfony and ReadTheDocs.
Implementation
Taxonomy System
doc_versionhierarchical taxonomy registered with REST API supportdocspost type taxonomies arrayVersion Selection UI
?version={slug}parameterHelper Functions (
includes/functions.php)Frontend Behavior
Files Changed
includes/Post_Types.php- taxonomy registrationincludes/functions.php- version utilities (123 lines)templates/single-docs.php- main content selectortemplates/docs-sidebar.php- sidebar selectorassets/build/frontend.css- dropdown styling (51 lines)assets/js/frontend.js- switching logic (25 lines)Usage
Admins assign versions via taxonomy UI. Users see version dropdown on docs with multiple versions. Selection persists via URL parameter for bookmarking/sharing.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.