How to add a Knowledge Base to WordPress using shortcodes
Updated Nov 23, 2026
Step-by-step setup for Support Desk Pro: create help articles, add the [extend_woo_kb] shortcode to a page, configure categories and search, and import articles.
Add a knowledge base to your WordPress site
Extend Woo Support Desk Pro · version 0.4.1
Extend Woo Support Desk lets you build a public, searchable help center using regular WordPress articles. You write the articles in the WordPress editor and place the knowledge-base directory wherever you want using the shortcode [extend_woo_kb].
The knowledge base, SEO fields and CSV importer are Pro features. Basic ticketing stays available with the free plugin.
1. Activate the knowledge base
- Install and activate Extend Woo Support Desk v0.4.1 or newer under Plugins → Add New → Upload Plugin.
- In WordPress, open Support Desk → License, paste your Extend Woo Pro key and save/validate it.
- Confirm the license is shown as Validated and includes the
knowledge_baseentitlement. - Go to Settings → Permalinks and click Save Changes once after installation so article URLs work properly.
WooCommerce is optional for the knowledge base; it can be used on a standard WordPress site.
2. Create the first article
- In WordPress admin, open Support Desk → Knowledge Base (the WordPress article list).
- Click Add New.
- Enter a descriptive title, such as How do I track my order?
- Write the answer in the WordPress block editor. Use clear headings, numbered steps, relevant links and optional images.
- Add an Excerpt: a short summary displayed beneath the article's title in the shortcode listing.
- Assign a KB Category (for example, Orders, Shipping, or Returns). Create one if it does not exist.
- Find the Knowledge Base SEO box beneath the editor. Set a SEO title and Meta description, or leave them empty to use the article title / excerpt fallback.
- Click Publish. Only published articles appear in the public knowledge-base listing.
Articles have individual URLs like https://yourstore.com/knowledge-base/how-do-i-track-my-order/. Draft articles do not appear in the public directory.
SEO tips: Write a unique, readable search title matching the customer question, and a useful meta description of roughly 140–160 characters. Avoid keyword stuffing. If another SEO plugin is active, verify that only one description tag is rendered and confirm which plugin controls the document title. Search rankings and indexing are not guaranteed.
3. Add the knowledge base to any page with a shortcode
Using the WordPress block editor (Gutenberg)
- Go to Pages → Add New (or edit an existing page).
- Name the page Help Center, Support, or Knowledge Base.
- Click the + block inserter and search for Shortcode.
- Add the Shortcode block, then paste:
[extend_woo_kb]
- Preview, then Publish or Update. Visit the page while logged out or in an incognito window to confirm customers see the article directory.
Using the classic editor or a page builder: Insert the same shortcode in an area that actually processes WordPress shortcodes (a Shortcode block/widget or a shortcode-enabled text area). A regular Custom HTML block or raw HTML embed may show the shortcode literally instead of rendering it.
The shortcode displays a heading, optional search form, published article titles with links, excerpts when provided, and pagination when necessary.
4. Customize the shortcode
| Option | Default | What it does |
|---|---|---|
| count | 20 | Articles per page; 1–50 allowed |
| category | all categories | Filter to one KB Category slug, such as shipping |
| heading | Help Center | Change the directory heading |
| search | yes | Set no to hide the search form |
All help articles:
[extend_woo_kb]
Shipping questions only:
[extend_woo_kb category="shipping" heading="Shipping Help"]
Small FAQ listing without a search box:
[extend_woo_kb count="6" search="no" heading="Frequently Asked Questions"]
Order support, twelve articles per page:
[extend_woo_kb category="orders" heading="Order Help" count="12"]
To find the category slug, open the KB Categories taxonomy for the Knowledge Base articles and inspect the Slug column or edit a category. The shortcode expects a slug (order-help), not the display name (Order Help). You can put the shortcode on multiple pages with different category filters.
The category option filters results but does not automatically create a drop-down category selector. Create additional directory pages, or add links to those pages in your site navigation if you want separate category landing pages.
5. Add the Help Center to your menu
Once you have published the page containing the shortcode, open Appearance → Menus (or the Navigation editor in a block theme). Add the Help Center page to your header/footer menu, save, and check the navigation on desktop and mobile.
Consider linking to the Help Center from your Contact page and WooCommerce customer support page so customers can find answers before opening a ticket.
6. Import articles in bulk (Pro)
- Open Support Desk → Import KB Articles.
- Download the sample CSV.
- Fill in the columns:
title,content,excerpt,slug,category,seo_title,seo_description,status. - Save as UTF-8 CSV and upload it through the importer.
- Review imported drafts, SEO metadata and category assignments before publishing.
title and content are required. For status, use draft or publish; other values become drafts. The importer accepts up to 2 MB and 250 rows per upload, skips pre-existing article slugs instead of overwriting them, and allows one category name per article.
7. Troubleshooting
The shortcode displays as text: Use a Shortcode block or a shortcode-capable page builder widget, not a raw HTML block.
The page displays “knowledge base currently unavailable”: Check Support Desk → License, validate your Pro key, and make sure the license includes knowledge_base. A failed or expired license hides the public directory but preserves the stored articles.
No articles appear: Publish at least one article, ensure it is not a draft, and check whether the category value matches its category slug.
An article URL returns 404: Go to Settings → Permalinks and save. Check that the article is published and that another plugin has not claimed the knowledge-base URL.
SEO meta titles/descriptions are missing or duplicated: Confirm the fields were saved and test conflicts with Yoast SEO, Rank Math, or your theme.
Search seems to include other pages: Search applies to the shortcode's published knowledge-base articles. Clear any unrelated site-wide search parameters and use the search box generated by the shortcode.
Quick go-live checklist
- [ ] Pro license validated and knowledge base entitlement present
- [ ] At least one article published with title, content, category and optional excerpt
- [ ] Article SEO title and description reviewed
- [ ] Help Center page created with
[extend_woo_kb] - [ ] Help Center page linked in navigation
- [ ] Search, article links, category filters, and pagination checked
- [ ] Mobile layout and logged-out visitor view checked
Download the latest WordPress plugin — v0.4.1
Note: Ticket support uses the separate shortcode [extend_woo_support]. It is not the same as the knowledge-base directory shortcode [extend_woo_kb].
