With this lightweight plugin you can create a knowledge base that contains your categories and posts.
With this lightweight plugin you can create a knowledge base that contains your categories and posts.
To display your knowledge base you can use a block, a shortcode or a widget.
You can customize your knowledge base by adding attributes to the block, the shortcode or the widget.
It’s also possible to display categories and posts from a custom post type (such as WooCommerce product categories and products).
With this plugin you can also create a FAQ or wiki in the same way as a knowledge base.
After installation add the VS Knowledge Base block or the shortcode [knowledgebase]
to a page to display your knowledge base.
You can also go to Appearance > Widgets and use the VS Knowledge Base widget.
Default settings categories:
Default settings posts:
You can customize your knowledge base by adding attributes to the block, the shortcode or the widget.
class="your-class-here"
columns="3"
columns="0"
include="1,3,5"
exclude="8,10,12"
hide_empty="0"
category_description="true"
posts_per_category="5"
order="ASC"
orderby="title"
orderby="rand"
post_count="true"
post_meta="true"
view_all_link="true"
view_all_link_label="your label here"
no_post_title_label="your label here"
no_categories_text="your text here"
Example: [knowledgebase include="1,3,5" hide_empty="0" post_meta="true"]
When using the block or the widget, don’t add the main shortcode tag or the brackets.
Example: include="1,3,5" hide_empty="0" post_meta="true"
With the columns attribute you can set the number of columns between 1 and 4.
The knowledge base becomes 2 columns in mobile screens (except when number of columns is set to 1).
You can also disable the columns. This can be handy if you only want to use your own styling.
The columns attribute will be ignored when using the block or widget. Because you can set the columns via the block or widget settings.
Besides displaying posts by category you can also display posts by tag: taxonomy="post_tag"
It’s also possible to display categories and posts from a custom post type (such as WooCommerce product categories and products).
To display these categories and posts you should add 2 attributes: “taxonomy” and “post_type”
WooCommerce:
taxonomy="product_cat" post_type="product"
taxonomy="product_cat" post_type="product" woo_image="true"
taxonomy="product_tag" post_type="product"
Please take a look at the FAQ section.
Translations are not included, but the plugin supports WordPress language packs.
More translations are very welcome!
The translation folder inside this plugin is redundant, but kept for reference.
Without the WordPress codex and help from the WordPress community I was not able to develop this plugin, so: thank you!
Enjoy!
Plugin has no settings page. Use the block, shortcode or widget with attributes to make it work.
No, this plugin is build to create a knowledge base that contains the default categories and posts.
It’s also possible to display categories and posts from a custom post type (such as WooCommerce product categories and products).
You can set the number of columns between 1 and 4 or disable the columns. This can be done via the block or widget settings or via an attribute.
If you disable the columns CSS class “vskb-custom” is added to the knowledge base. This can be handy if you only want to use your own styling.
But you should use custom CSS for making other changes.
Every category URL contains an unique ID. You will find this ID when hovering the category title in your dashboard or when editing the category.
It’s the number that comes after: tag_ID=
Every tag URL contains an unique ID. You will find this ID when hovering the tag title in your dashboard or when editing the tag.
It’s the number that comes after: tag_ID=
No, this is not possible. Parent and subcategories are displayed separately.
Yes, it will be displayed in the frontend of your website with a default label. You can change this label by using an attribute.
The version number won’t give you info about the type of update (major, minor, patch). You should check the changelog to see whether or not the update is a major or minor one.
You like my plugin and want to make a donation? There’s a PayPal donate link at my website. Thank you!
Please open a topic in the WordPress.org support forum for this plugin.
For all versions please check file changelog.