The key to the WP Knowledge Base Theme is the categories. We could make a custom post type for specifically maintaining Knowledge Base articles, but since this theme is entirely meant for Knowledge Base and nothing else, we chose to use default WordPress category and posts. Let us see, how we need to organize categories to make the dynamic homepage of the theme.
Organizing Categories
WP Knowledge Base Theme assumes you have hierarchical structure of categories, where:
- The top most parent category represents individual products to which knowledge base is for.
- The child categories simply categorizes the knowledge base articles.
This screenshot show how a general two tier category system is made for the theme:
Customizing Parent Categories:
As said before, parent categories are referred to as products. While creating a parent category, you will need to provide the following additional information.
Description:
This is shown inside the popover on home page and any parent category page.
Support Forum:
This is shown on the home page, on parent category page and on all subcategories of this category. Also, if you are using the Affix widget, then it is shown there as well.
Icon Class:
This is optional. But if you provide it, then this will be used for the Knowledge Base Widget. Information on available icon classes can be found here.
Image URL:
A link to an image of size 128X128. This is shown on home page and parent category page. The image is circled off and may trim some components. So make sure to use some circular image for compatibility.
Customizing Child Categories:
Child categories are shown below parent categories on home page. Additionally:
- All child categories inherit parent category support forum link (if present).
- Child categories can have their own description.
- Child categories can not have any images but, they can and should have icons.
Description:
This is shown on the popover of the parent category page (with listing of all child categories) and on child category archive page.
Icon Class:
This is shown on home page (on every parent category listing) and on parent category archive page.
For a list of available icon classes check this post.
Creating Knowledge Base Articles
Creating Knowledge Base articles is as easy as creating nothing but posts. Learn below.
Creating an article:
Just create normal Posts and tick a single subcategory. Do not put an article under two categories otherwise this will lead to improper behavior.
Automated Like Button:
Once you publish an article you will see a nice button below it, using which your customers can “Like” it. It will also show the number of people who “Found this article useful” beside it. (Hey, make sure to “Find this article useful”).
Controlling number of articles shown:
The Affix Widget will show all articles under the current sub category. For the rest (home page, parent category page, child category archive page etc) number of articles is controlled via WordPress settings itself. Simply go to Settings Reading and set the number of posts by entering a value in “Blog pages show at most [___] posts”. Simple enough.
Visualize it!
See the gallery below to see how different components are shown on different pages.
- Making Knowledge Base Homepage
- Parent Category popover and support link
- Parent Category main page
- Child Category Popover
- Child Category Main Page
- Knowledge Base Article Page
That’s it. Have fun.