-
Notifications
You must be signed in to change notification settings - Fork 3
Content Module Shortcode
Displays a Content Module post type.
You can either display a single Content Module or list of Content Modules.
Displaying a single Content Module:
[wm_content_module module="module-slug" /]
Displaying multiple Content Modules:
[wm_content_module columns="3" count="6" order="name" /]
Please note that you can omit parameters with empty values when writing the shortcode.
Parameter | Type | Value example | Description |
---|---|---|---|
class |
string | my-class |
Adds a custom CSS class(es) onto shortcode wrapper. |
columns |
predefined |
1 , 2 , 3 , 4 , 5 or 6
|
Number of columns items are displayed in. This parameter is irrelevant when displaying a single specific item. |
count |
integer | 6 |
Number of items to display. This parameter is irrelevant when displaying a single specific item. From performance perspective it is not recommended to use a value of -1 to display all items, instead use 50 , for example. |
filter |
boolean |
0 (false) or 1 (true) |
Whether to display a filter from content module tags. |
filter_layout |
string | masonry |
The filter uses Isotope JavaScript library and you can optionally set its layout here. |
heading_tag |
predefined |
h2 , h3 , h4 , h5 or h6
|
Sets the caption HTML heading tag for headings cascade control (for better accessibility). |
image_size |
predefined | thumbnail |
One of image sizes registered on your WordPress site. |
layout |
string | image,title,content |
With this parameter you can modify the Content Module display. Every Content Module may contain a content , image , morelink , tag and title . By specifying their display order here, separated with a comma (, ) you can effectively change the Content Module display. Please note that your theme may not provide styles for all possible combinations. Default display is image,title,content,morelink . |
module |
string | slug |
A slug of a single specific Content Module you want to display. You may also set this value to a number - a post ID. If you set this parameter, the ones related to multi-item display (such as columns or count ) will be ignored. |
no_margin |
boolean |
0 (false) or 1 (true) |
Removes or minimizes the gap between the items. Your theme must provide the related styles. |
order |
predefined |
custom , menuasc , menudesc , name , new , old or random
|
Sets the order in which posts display. Default is new . The custom is synonym for menuasc . Also, it is not really recommended to use random as it slows down your website performance. |
pagination |
boolean |
0 (false) or 1 (true) |
Whether to display a multi-page navigation (pagination). |
scroll |
integer |
0 or 1 or 5000
|
Enables horizontal carousel scrolling. 0 stands for disabled, 1 enables manual carousel, 1000 and more enables automatic carousel where the value sets the carousel pause in milliseconds (so, 5000 sets the carousel pause to 5 seconds, for example). Default is 0 . |
tag |
string | content-module-tag-slug |
You can display Content Modules assigned to a specific module tag by setting the tag slug in this parameter. |
Please, make sure your theme supports this shortcode, before using it.
Some themes may not be compatible with certain shortcodes as they may use different approach to displaying similar elements. In that case the shortcode is displays in its raw code format on your website front-end.
— Download the plugin at WordPress plugins repository or directly via your WordPress dashboard.
— Get a compatible theme at WebManDesign.eu.
— Please help us translate the plugin into your language. Thank you! :)