Skip to Content

Shortcodes

Is a comprehensive collection of various visual and functional elements, which you can use in the post editor, text widgets or even in template files.

Available Shortcode Parameters

ParamDescription
post_statusValue : publish, pending, draft, auto-draft, future, private, inherit, trash, any / Default: publish
posts_per_pageNumber of post display. (Default: 9)
orderASC, DESC / Default : DESC
orderbyValue : title, name, menu_order, date, meta_value_num / Default : title
custom_sortValue : true, false / Default : true
excerpt_limitNo. of the content characters
show_featuredDisplay all communities / Default : No / Value : Yes or No
show_bydisplay communities by group / Default : ” / Value : community-group
community_group_slugDisplay specific taxonomy by slug
thumb_sizeDefault : Full / Value : Medium, Thumbnail

Usage

This sample shortcode paremeters will show communties all communities without parent communities.

html
<div className="loop"> [aios_communities_all] [loop_start] Post ID : [post_id] Post Title : [post_title] Post Content : [post_content] Permalink : [permalink] Thumbnail : [thumbnail] Thumbnail srcset : [thumbnail_srcset] Thumbnail Sizes: [thumbnail_sizes] Thumbnail Width: [thumbnail_width] Thumbnail Height: [thumbnail_height] Exerpt : [excerpt] [loop_end] [/aios_communities_all] </div>

This sample shortcode paremeters will show communties and its parent communities.

html
<div className="loop"> [aios_communities] [loop_start] <div className="loop-start"> Term ID : [term_id] Term Name : [term_name] Term Slug : [term_slug] Term Description : [term_description] Term Banner : [term_banner] [community_start] <div className="community-start"> Post ID : [post_id] Post Title : [post_title] Post Content : [post_content] Permalink : [permalink] Thumbnail : [thumbnail] Exerpt : [excerpt] </div> [community_end] </div> [loop_end] [/aios_communities] </div>

This sample shortcode paremeters will show Parent Community Only.

html
<div className="loop"> [aios_communities] [loop_start] <div className="loop-start"> Term ID : [term_id] Term Name : [term_name] Term Slug : [term_slug] Term Description : [term_description] Term Banner : [term_banner] </div> [loop_end] [/aios_communities] </div>

This sample shortcode will show specific group you declare via slug

html
<div className="loop"> [aios_communities show_by="community-group" community_group_slug="group-1, group-2"] [loop_start] <div className="loop-start"> Term ID : [term_id] Term Name : [term_name] Term Slug : [term_slug] Term Description : [term_description] Term Banner : [term_banner] [community_start] <div className="community-start"> Post ID : [post_id] Post Title : [post_title] Post Content : [post_content] Permalink : [permalink] Thumbnail : [thumbnail] Exerpt : [excerpt] </div> [community_end] </div> [loop_end] [/aios_communities] </div>

1.4.5 Update

This sample shortcode parameter will sort Community Groups based on the positions declared in the backend.

html
<div className="loop"> [aios_communities meta_key="term_position" orderby="meta_value_num" order="ASC"] [loop_start] <div className="loop-start"> Term ID : [term_id] Term Name : [term_name] Term Slug : [term_slug] Term Description : [term_description] Term Banner : [term_banner] [community_start] <div className="community-start"> Post ID : [post_id] Post Title : [post_title] Post Content : [post_content] Permalink : [permalink] Thumbnail : [thumbnail] Exerpt : [excerpt] </div> [community_end] </div> [loop_end] [/aios_communities] </div>

Introduced from version 1.0.0

Last updated on