WordPress Theme Integration

The KB Articles plugin integrates with any theme for WordPress automatically, because it integrates with a WordPress core feature, Custom Post Types. Whenever you install the KB Articles plugin it adds a new Post Type that is specifically for KB Articles. The KB Articles plugin also adds support for what is referred to as a […]

[kb /] Shortcode

The Shortcode produces a summary of KB Articles in a variety of ways. By default, it also displays a KB Article search box, Categories, and Tags. However, all of this behavior can be altered through the Shortcode Attributes described in this article. Default Behavior This example is quick & easy. The built-in defaults are all […]

WooCommerce Integration

The KB Articles plugin works both as a global knowledge base (i.e., you can write articles that are not associated with any specific WooCommerce Product), and it also makes it easy to build Product-specific knowledge bases too. Product-Specific KB Articles Whenever you create a new KB Article, you can choose to connect that article to […]

Protecting BuddyPress Areas

Protecting a Post of any type (e.g., Post, Page, Product, bbPress Forum, Topic, Reply) will protect the Permalink leading to that Post. It will also protect any additional Endpoints, and any child Posts in a hierarchy. For instance, protecting a parent Page also protects any child Pages, protecting a bbPress Forum also protects all Topics/Replies […]

Protecting bbPress Forums

Protecting a Post of any type (e.g., Post, Page, Product, bbPress Forum, Topic, Reply) will protect the permalink leading to that Post. It will also protect any child Posts in a hierarchy. For instance, protecting a parent Page also protects any child Pages, and protecting a bbPress Forum also protects all Topics/Replies in that Forum. […]

WooCommerce Compatibility

The Shortcode offers WooCommerce compatibility as well. This is achieved through special Shortcode Attributes that are designed to work exclusively with the WooCommerce plugin for WordPress. Below is a list of Shortcode Attributes that are compatible with WooCommerce. Attributes that Require WooCommerce current_user_is_paying_customer="{bool}" current_user_bought_product="{ID|SKU|expr}" current_user_can_download="{ID|SKU|expr}" All WooCommerce-Compatible Attributes php="{raw}" (powerful ) current_user_is_logged_in="{bool}" current_user_can="{capability|expr}" current_user_is_paying_customer="{bool}" current_user_bought_product="{ID|SKU|expr}" […]

Nesting Conditional Shortcodes

The idea is that you have a conditional check via the Shortcode. When the condition is true and content is displayed by that Shortcode, you might have another nested Shortcode within that particular block that checks something else. While this is absolutely possible, it requires an underscore _ prefix as outlined below. Example 1 (Bad/Invalid) […]

Simple Expressions

Simple Expressions are supported by some Shortcode Attributes. They allow you to check multiple conditions within the context of a supporting Attribute, using logical operators such as AND, OR. You can also group conditions using round brackets, much like you would in a raw PHP expression. Attributes Supporting Simple Expressions current_user_can="{capability|expr}" current_user_bought_product="{ID|SKU|expr}" current_user_can_download="{ID|SKU|expr}" current_user_meta="{key|expr}" current_user_option="{key|expr}" […]

Arbitrary Custom Attributes

In addition to all of the Attributes that come with the Shortcode, you can also convert any PHP function into a Shortcode Attribute automatically. This functionality is disabled by default, but you can easily enable it from the plugin options page in WordPress. This feature packs a lot of powerful functionality! When Arbitrary Attributes are […]

Shortcode Attributes

The Shortcode can be used in many different ways. Below you will find documentation for all of the Shortcode Attributes that are currently supported, along with a few examples of their use. More examples can be found throughout our knowledgebase. Shortcode Attributes php="{raw}" (powerful ) current_user_is_logged_in="{bool}" current_user_can="{capability|expr}" current_user_is_paying_customer="{bool}" current_user_bought_product="{ID|SKU|expr}" current_user_can_download="{ID|SKU|expr}" current_user_meta="{key|expr}" current_user_option="{key|expr}" request_var="{key|expr}" Shortcode Modifier […]