开发者 | Guido07111975 |
---|---|
更新时间 | 2024年9月8日 01:35 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv3 |
版权网址: | 版权信息 |
[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:
class="your-class-name"
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"
no_post_title_label="your label"
no_categories_text="your text"
[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 small 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.
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 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. You can use page Additional CSS of the Customizer for your custom 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.