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
Param | Description |
---|---|
post_status | Value : publish, pending, draft, auto-draft, future, private, inherit, trash, any / Default: publish |
posts_per_page | Number of post display. (Default: 9) |
order | ASC, DESC / Default : DESC |
orderby | Value : title, name, menu_order, date, meta_value_num / Default : title |
custom_sort | Value : true, false / Default : true |
excerpt_limit | No. of the content characters |
show_featured | Display all communities / Default : No / Value : Yes or No |
show_by | display communities by group / Default : ” / Value : community-group |
community_group_slug | Display specific taxonomy by slug |
thumb_size | Default : 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