传奇传世复古资源的暂存站!

Very Simple Knowledge Base使用方法

2022.9.28 技术教程 736 编辑
推广
推荐工具 不会架设,不会配置,找不到引擎,找不到登录器?

GGM 助手一键架设,一键修复。

  • 认引擎 自动识别彩虹3 / 星河 / 龙腾 / AFT3 / U2 / 飘逸
  • 对组件 与标准组件逐项比对,缺的补、旧的换
  • 修配置 路径重算成相对路径、端口与游戏名统一,换台机器不用再改
  • 补目录 打包丢掉的空目录自动补齐,不再报路径错误
  • 一键启动 按顺序拉起数据库、登录服务、主引擎与三个网关
  • 自愈程序持续更新 无法修复的版本直接上报,管理员帮忙修复
免费下载 GGM 助手 · 逛在线版本库 Windows 10 / 11 · 免费 · 版本库每个包都标注了「已通过 GGM 部署验证」

描述

短代码删除#

ABOUT

This is a lightweight plugin to create a knowledge base.

Add shortcode [#knowledgebase] on a page or use the widget to display your categories and posts.

You can personalize your knowledge base by adding attributes to the shortcode or the widget.

This plugin can also be used to create a FAQ or wiki.

You can also list categories and posts from a custom post type (such as “product” or “event”).

HOW TO USE

After installation create a page and add shortcode [#knowledgebase] to display your categories and posts.

Or go to Appearance > Widgets and use the widget to display your categories and posts.

Default settings categories:

  • 4 columns when using shortode
  • 1 column when using widget
  • Order by name
  • Ascending order (A-Z)
  • Empty categories are hidden
  • Parent and subcategories are listed separately

Default settings posts:

  • Order by date
  • Descending order (new to old)
  • All posts are displayed

SHORTCODE ATTRIBUTES

You can add attributes to the shortcode mentioned above.

  • Change number of columns: columns="3"
  • Add custom CSS class to knowledge base: class="your-class-here"
  • Include certain categories: include="1,3,5"
  • Exclude certain categories: exclude="8,10,12"
  • Display empty categories too: hide_empty="0"
  • Display category description: description="true"
  • Change number of posts per category: posts_per_page="5"
  • Display posts in ascending order: order="ASC"
  • Display posts by title: orderby="title"
  • Display posts in random order: orderby="rand"
  • Display number of posts (post count) count="true"
  • Display post meta (date and author): meta="true"
  • Display View All link: all_link="true"
  • Change label of View All link: all_link_label="your label here"
  • Change label of post without title: no_title_label="your label here"

About the columns attribute: you can choose between 1-4 columns. In mobile screens 2 columns (except the 1 column knowledge base).

You can disable the CSS of the individual columns with columns="0". This can be useful when using your own styling.

Examples:

  • One attribute:

    [#knowledgebase posts_per_page="5"]

  • Multiple attributes:

    [#knowledgebase include="1,3,5" hide_empty="0" meta="true"]

WIDGET ATTRIBUTES

The widget supports the same attributes. Don’t add the main shortcode tag or the brackets.

Examples:

  • One attribute: posts_per_page="5"
  • Multiple attributes: include="1,3,5" hide_empty="0" meta="true"

POST TAGS

Besides listing posts by category you can also list posts by tag: taxonomy="post_tag"

CUSTOM POST TYPES

You can also list categories and posts from a custom post type (such as “product” or “event”).

To list these categories and posts you should add 2 shortcode attributes: “taxonomy” and “post_type”

You can for example list WooCommerce products:

  • List products: taxonomy="product_cat" post_type="product"
  • List products with product category image: taxonomy="product_cat" post_type="product" woo_image="true"
  • List products by tag instead of category: taxonomy="product_tag" post_type="product"

QUESTION?

Please take a look at the FAQ section.

翻译

Not included but plugin supports WordPress language packs.

More translations are very welcome!

荣誉榜

Without the WordPress codex and help from the WordPress community I was not able to develop this plugin, so: thank you!

Enjoy!

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复