Skip to main content

Search Knowledge Base by Keyword

This KB documentation is using Advanced Search, Links Editor and Elegant Layouts add-ons.

Print

Knowledge Base Shortcode / Block

KB Layout Block vs KB Shortcode

To display your Knowledge Base on your web page, you will need one of the following:

a) KB layout block (recommended) - see the KB Blocks article.

b) KB shortcode as explained in this article below.

Where to Insert KB Shortcode

Insert the Knowledge Base (KB) shortcode into a page, not a post.

When using Gutenberg blocks, make sure you insert the shortcode inside a Shortcode block, not a paragraph or text block. Page builders such as Elementor, Divi, and others provide dedicated shortcode widgets that should be used instead.

Avoid using basic text or paragraph blocks/widgets, as they can sometimes interfere with the layout or styling of the Knowledge Base.

Echo Knowledge Base will display on the page if it contains the KB shortcode (or KB layout block). You have the following options to set the KB shortcode:

a) Run the Setup Wizard. The wizard will automatically creates a new page with the KB shortcode if one does not already exist. How to Run Setup Wizard

b) Manual Insertion: Insert the KB shortcode into any existing page using your preferred builder or the classic editor:

WordPress Shortcode
				%crel_bracket_open%epkb-knowledge-base id=1%crel_bracket_close%
			
      • kb_id parameter is the ID of your knowledge base. Use ‘1’ unless you have the Unlimited KBs add-on, which allows you to add additional knowledge bases.

Using Divi Code Module to insert KB Shortcode

Using Elementor Shortcode Widget to insert KB Shortcode

c) Use Shortcode Block: Add the KB shortcode directly to a Shortcode Block:

A WordPress shortcode

Is a small piece of text, written inside square brackets, that lets you add special features to a page or post without writing code. When the page loads, WordPress automatically replaces the shortcode with the correct content, such as a gallery, form, or dynamic feature. You can learn more in the official documentation here: https://codex.wordpress.org/Shortcode.

Was this article helpful?
0.5 out Of 5 Stars

2 ratings

5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 100%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?
Table of Contents