开发者 | Guido07111975 |
---|---|
更新时间 | 2024年5月2日 13:51 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv3 |
版权网址: | 版权信息 |
class="your-class-here"
columns="3"
include="1,3,5"
exclude="8,10,12"
hide_empty="0"
description="true"
posts_per_page="5"
order="ASC"
orderby="title"
orderby="rand"
meta="true"
all_link="true"
all_link_label="your label here"
no_title_label="your label here"
no_categories_text="your text here"
[knowledgebase include="1,3,5" hide_empty="0" 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" meta="true"
With the columns attribute you can set the number of columns between 1 and 4. In mobile screens 2 columns (except the 1 column knowledge base).
You can disable the columns with columns="0"
. This can be handy if you only want to use your own styling.
Post tags
Besides displaying posts by category you can also display posts by tag: taxonomy="post_tag"
Custom post types
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"
Plugin has no settings page, use the shortcode with attributes or the 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 use an attribute to set the number of columns between 1 and 4 or to disable the columns. But you should use custom CSS for making other changes. 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.
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.