To display a set of topics you can use topics shortcode. It can display topics in list or box view and show recent or specific topics. Almost any topic layout you can build on home page can be reproduced using this shortcode.
Check the following example:
[mkb-topics title="Featured topics" title_size="2em" columns="2col" topics="2,22"]
Featured topics
There are of course more options you can use. Here’s a complete list (so far):
Parameter | Default | Example values | Description |
---|---|---|---|
title | Empty | “Title example” | Title for topics section |
title_color | Empty | “#333” | Title color. Use HEX or RGB value |
title_size | Empty | “2em” or “20px” | Title font size |
topics | Empty | “22,30,50” | List of topic IDs to display. When not present, recent topics are displayed. |
view | box | “box” or “list” | Layout for topics |
columns | 3col | “2col”, “3col” or “4col” | Number of columns to display |
show_count | 1 | 1 or 0 | Switch to show/hide articles count |
show_all | 1 | 1 or 0 | Switch to show/hide Show all text |
show_all_label | Show all | “View more” | Text for show all link |
limit | Empty | 5 or -1 | How many topics to display. Use -1 to show all. |
count_bg | Empty | “#336688” | Articles count background color. Use HEX or RGB value |
count_color | Empty | “#333” | Articles count text color. Use HEX or RGB value |
show_topic_icons | 1 | 1 or 0 | Switch to show/hide topic icons |
show_article_icons | 1 | 1 or 0 | Switch to show/hide article icons (for list view) |
article_icon | fa-book | “fa-file” | Article icon class. Use any Font Awesome class name, they’re prefixed with fa-. When empty, global setting is used |
topic_color | Empty | “#335588” | Topic color. When empty, global value is used |
topic_icon | fa-list-alt | “fa-book” | Topic icon class. Use any Font Awesome class name, they’re prefixed with fa-. When empty, global setting is used |