Shortcodes

Frequently used shortcodes

A lot of our shortcodes can use taxonomies and terms to pull through pieces of content dynamically.

The following shortcodes are commonly used. To use them on a hub, copy and paste then replace or delete XXX and YYY.

Most of these will also have the parameter terms_operator which defaults to OR, if you don't wish to have this you can add the parameter terms_operator="AND".

[content terms="XXX, YYY"]

[carousel_slider terms="XXX, YYY"]

[full_width_carousel_slider terms="XXX, YYY"]

[videos_carousel terms="XXX, YYY"]

[videos_listing terms="XXX, YYY"]

[events_recommendation_widget terms="XXX, YYY"]

[podcasts_carousel terms="XXX, YYY"]

[articles_carousel terms="XXX, YYY"]

[documents_carousel terms="XXX, YYY"]

[documents_listing terms="XXX, YYY"]

[report_listing_with_filters terms="XXX, YYY"]

[slides_listing terms="XXX, YYY"]

[events terms="XXX, YYY"] [content_with_search_bar terms="XXX, YYY"]

Here are the shortcodes that use taxonomies as a parameter:

[content_with_search_bar taxonomies="XXX, YYY"]

Generates a video carousel.

OptionsTypeDefault

n_items

Integer

10

data

badge, date, title, sub_title, description

title

ids

Integer

all

terms

Interfer

all

theme

dark, light

light

card_edges

square, rounded

square

play_icon_color

hex/RGB()

accent colour

card_background_color

hex/RGB()

accent colour

card_text_color

hex/RGB()

white

arrows_color

hex/RGB()

accent colour

order

ASC/DESC

DESC

order_by

created_at, updated_at

created_at

exclude

Integer

none

Example (View):

[videos_carousel 
theme="dark" 
arrows_color="#96C869" 
data="badge,title,sub_title,date" 
play_icon_color="#96C869" 
card_edges="rounded" 
card_background_color="#001437"]

Last updated