WordPress Plugin · v1.0.0 · GPL v2

WP Knowledge Base
& FAQ System

Build a searchable help centre and accordion FAQ inside WordPress. Live article search, a customer voting system, view tracking, a Popular Articles sidebar widget, and a REST API — all using WordPress-native post types and meta.

Getting Started

Installation & Activation

I

Upload the Plugin

Go to Plugins → Add New → Upload Plugin. Select wp-knowledge-base.zip and click Install Now.

II

Activate

Click Activate Plugin. Creates the wp_wpkb_stats table for tracking article views and votes. Adds the manage_kb capability to Administrators.

III

Create Categories & Articles

Go to Knowledge Base → KB Categories to create topics. Then KB → Add New Article. Set the Difficulty and Last Reviewed date in the meta box.

IV

Add Shortcodes to Pages

Place [kb_search] on your help centre page. Add [faq_accordion] to any FAQ page. Add the Popular Articles widget to a sidebar.

What's Included

Plugin Features

🔍

Live Article Search

Searches KB articles by title and content via AJAX. Results appear instantly as you type.

Accordion FAQ

Clean accordion layout with configurable open state. Can show all closed, first open, or any specific item open.

👍

Article Voting

Helpful / Not Helpful voting buttons injected into article content. Votes stored per user IP in the stats table.

👁

View Tracking

Each article view is counted using ON DUPLICATE KEY UPDATE. Powers the Popular Articles widget.

Popular Articles Widget

Sidebar widget showing most-viewed articles. Results cached using WordPress transients.

🏷

Difficulty & Dates

Meta box lets editors set article difficulty (Beginner / Intermediate / Advanced) and Last Reviewed date.

🔌

REST API

Public GET /wpkb/v1/articles endpoint to query KB articles by category or search term.

📂

KB Categories

Hierarchical taxonomy to organise articles by topic. Shown in the search bar filter and FAQ accordion.

FAQ Accordion Demo

How do I reset my password?
Go to the login page and click "Forgot Password". Enter your email and check your inbox for a reset link.
What payment methods do you accept?
We accept Visa, Mastercard, PayPal, and bank transfers. All payments are processed securely via Stripe.
How long does delivery take?
Standard delivery is 3–5 business days. Express delivery is available at checkout for 1–2 day delivery.
Developer Reference

Shortcodes & REST API

Knowledge Base Search

Renders a live search bar that queries KB articles. Results show title, excerpt, and a Read More link.

[kb_search]
[kb_search placeholder="Find help…" limit="8"]
AttributeDefaultDescription
placeholder"Search articles…"Placeholder text inside the search input.
limit10Maximum number of results to show.

FAQ Accordion

Renders an accessible accordion from KB articles in the specified category.

[faq_accordion]
[faq_accordion category="billing" limit="10" open="-1"]
AttributeDefaultDescription
categoryallKB Category slug to filter FAQ items.
limit10Maximum number of FAQ items.
open-1-1 = all closed · 0 = first open · 2 = third item open.

REST API

GET /wp-json/wpkb/v1/articles   ?category=billing&search=payment&per_page=20
The Developer

Author Profile

Vetri Suriya
PHP · WordPress · AWS

WordPress developer specialising in custom plugin architecture, REST APIs, and production deployments on AWS. This plugin library was built for developer interview preparation and real-world reference, covering every major WordPress technology.