OpenAPI Integration (Beta) Attach an OpenAPI 3.x spec URL to any category and sync. WP Super Docs fetches the spec and creates one draft doc per endpoint using Nahnu Code Block for…
OpenAPI Integration (Beta)
Attach an OpenAPI 3.x spec URL to any category and sync. WP Super Docs fetches the spec and creates one draft doc per endpoint using Nahnu Code Block for presentation. Multiple categories across multiple products each sync independently.
Each generated doc contains an Endpoint block, Servers block, Auth block, Parameters block (path, query, header, and request body), Response Body block, Status Codes block, and a cURL example. All data comes directly from the spec.
Re-syncing updates only the generated blocks. Anything written outside that group, before it, after it, or in between, is never touched.
Supported spec formats: OpenAPI 3.x JSON and YAML. YAML support uses the PHP yaml extension if installed, or a bundled pure-PHP parser as a fallback so no server configuration is required.
Requires Nahnu Code Block (v3). Block generation is fully delegated to the new Nahnu_Code_Block_Openapi class, which automatically covers all new block features including auth required badge, example vs default on parameters, typeRef cross-links, show schema toggle, response headers, range and pattern badges, read-only and write-only pills, nullable, endpoint description, related endpoints, operation ID, multiple named examples, and callbacks.
Enabled under Settings → Integrations → OpenAPI. Marked Beta.
See: https://www.wpsuperdocs.com/docs/main/importing-content/openapi-integration/
Doc Categories page
A new dedicated admin page under Docs → Doc Categories replaces the default WordPress taxonomy screen for category management.
Product tabs across the top switch the category list. Each category row shows its name, slug, doc count, and badges for OpenAPI, Internal only, and No sitemap status.
Clicking Edit opens the standard WordPress category edit screen in a new tab with all fields available.
An OpenAPI button appears on each row when OpenAPI is enabled. Clicking it expands an inline panel with the spec URL field, a Save URL button, and a Sync now button so spec management and syncing happen without leaving the page. Sync results appear inline with a link to the first generated doc.
A Save order button is always visible in the toolbar. Categories can be dragged to reorder and the new order is saved on demand. The order is immediately reflected on the frontend — both the sidebar navigation and the category card grid respect it.
A Sync button appears on rows that have an OpenAPI URL set, allowing per-category syncing directly from the list.
Delete is blocked when a category has docs assigned, showing how many need to be moved first.
The default WordPress category taxonomy menu item is hidden.
See: https://www.wpsuperdocs.com/docs/main/products-organization/the-doc-categories-page/
Categories are shared across products
Corrected the data model for category-product associations. Categories are WordPress taxonomy terms shared across the entire site, the same category can appear under multiple products simultaneously. The previous implementation stored a single product ID per category, which incorrectly implied exclusivity.
Associations are now stored as non-unique term meta, allowing one category to belong to any number of product tabs. Adding or removing a category from a product tab only affects that product’s association, leaving all others intact.
An Add existing button appears in the toolbar alongside the renamed New category button. Clicking it loads a dropdown of all categories not yet shown on the current product tab. Selecting one and clicking Add to product creates the association without changing the category’s relationship to any other product. A note in the form explains the shared-category model.
See: https://www.wpsuperdocs.com/docs/main/products-organization/the-doc-categories-page/#creating-a-category
Category order on the frontend
Category order set on the Doc Categories page is now applied to the frontend navigation sidebar and the Browse by category card grid on product pages. The sort runs after all nav tree building regardless of whether a manual nav override is active, making the Doc Categories page the authoritative source for category order across the site.
Search scope dropdown respects product groups
The scope selector shown when searching inside a doc now organises other products by their group labels.
Product switcher modal column count fixed
Ungrouped products were rendering as wpsd-cols-0 because a null group value cast to integer zero. Fixed with a proper fallback so configured column counts are respected.