Content

The [content] shortcode allows you to display content dynamically on your hub with various customizable options.

Accepted Parameters

Parameter
Description
Default Value

ids

Comma-separated list of specific content IDs to display.

None

exclude

Comma-separated list of content IDs to exclude from display.

None

title

Title displayed above the content section.

None

width

Width of the content block (e.g., 1/3rd, full).

1/3rd

no_optional_header

Hides the optional header for the content section.

FALSE

horizontal

Toggles horizontal layout.

FALSE

wall

Enables masonry-style wall layout.

None

gallery

Displays content in a gallery-style layout.

FALSE

no_link

Disables links for content items.

FALSE

link

Adds a custom link for the content section.

None

class

Adds custom CSS classes to the content block.

None

n_items

Specifies the number of items to display.

20

order_by

Field by which content is sorted (e.g., created_at, views).

created_at

order

Sorting direction: ASC (ascending) or DESC (descending).

DESC

types

Filters content by specific types.

None

taxonomies

Filters content by taxonomy IDs (comma-separated).

None

terms

Filters content by specific terms.

None

terms_to_exclude

Excludes content associated with specific terms.

None

zone

Filters content by a specific zone.

None

channel_id

Filters content by a specific channel ID.

None

date

Filters content by a specific date or date range.

None

terms_operator

Logical operator for combining term filters: OR or AND.

OR

list_unconnected

Includes content not connected to a specific taxonomy or term.

FALSE

no_row

Removes the row wrapper around the content block.

FALSE

card_variation

Defines the style of content cards (see "Card Variations" below).

default

highlight_pos

Specifies positions of highlighted content cards (comma-separated).

None

clear_fix_position

Sets the position for a clearfix div for responsive layout adjustments.

3

paginate

Enables pagination for the content display.

FALSE

randomize

Randomizes the order of the displayed content.

FALSE

page

Specifies the current page for paginated content.

1

wrapper_class

Adds custom CSS classes to the content wrapper.

None

image_pos

Specifies the position of the image in content cards: left or right.

None

agenda_open

Toggles the "open" state for agenda-related content.

FALSE

coming_soon

Filters content by availability: exclude or only upcoming content.

None


Card Variations

The card_variation parameter allows you to customize the style of the displayed content cards. Accepted values include:

Card Variation
Description
Example

default

The default card style without customization.

2022

A modern, grid-based card style.

full

Displays the entire content piece on a page

headline

A simplified style emphasizing headlines without a card container.

list-view

A compact, list-style layout.

list

Another list-style variation with subtle differences.


Examples

Basic Usage

[content 
    title="Latest Articles" 
    n_items="10" 
    width="full" 
    card_variation="headline"]
  • Displays the 10 latest articles in a full-width layout using the "headline" card style.

Filtering by Taxonomy

[content 
    taxonomies="12,15" 
    terms_operator="AND" 
    n_items="5" 
    order_by="created_at" 
    order="DESC"]
  • Displays the top 5 most-viewed items associated with taxonomy IDs 12 and 15.

Excluding Content

[content 
    exclude="45,89" 
    n_items="20"
    card_variation="list"]
  • Displays 20 content items, excluding items with IDs 45 and 89, using the "list" card style.

Randomized Content

[content 
    randomize="true" 
    n_items="8"]
  • Displays 8 randomly selected items

Last updated