Shortcodes
[post_grid]
Generate post grid content similar to the '[StreamTube] Post List" widget.
Parameters:
All parameters can be combined. For instance, you can display 10 videos and blog posts with post statuses set to both "publish" and "private"
[post_grid post_type="video, post" post_status="publish, private" posts_per_page="10"]post_type: accepts a string with post type(s) separated by commas, for example:
[post_grid post_type="video"]
[post_grid post_type="post"]
[post_grid post_type="video, post, custom_post_type_slug"]post_status: accepts a string with post status(es) separated by commas, for example:
[post_grid post_status="publish"]
[post_grid post_status="publish, private"]
[post_grid post_status="publish, pending, private"]author__in: accepts a string with author ID(s) separated by commas, for example:
[post_grid author__in="1"]
[post_grid author__in="1,2,3"]author__not_in: accepts a string with author ID(s) separated by commas, for example:
[post_grid author__in="1"]
[post_grid author__in="1,2,3"]role__in: accepts a string with roles ID(s) separated by commas, for example:
role__not_in: accepts a string with roles ID(s) separated by commas, for example:
post__in: accepts a string with post ID(s) separated by commas, for example:
post__not_in: accepts a string with post ID(s) separated by commas, for example:
posts_per_page: limits the number of displayed posts, for example:
col, col_sm, col_md, col_lg, col_xl, col_xxl: number of displayed columns, for example:
tax_query_{taxonomy}: accepts a string with term slug(s) separated by commas, for example:
show_post_date: Specify whether to display the post date, for example:
show_post_comment: display comment count, for example:
show_author_name: display post author name, for example:
author_avatar: display author avatar, for example:
avatar_size: author avatar size, for example:
show_post_view: display post view count, for example:
post_excerpt_length: display post excerpt, acceps a number, for example:
hide_thumbnail: hide post thumbnail, for example:
hide_empty_thumbnail: do not display empty thumbnail posts, for example:
thumbnail_size: thumbnail image size, for example:
thumbnail_ratio: aspect ratio, for example:
pagination: display pagination, for example:
slide: display slider, for example:
slide_rows: number of slide row, for example:
slide_dots: display the slide dots, for example:
slide_arrows: display the slide arrows, for example:
slide_infinite: sliding infinite , for example:
slide_speed: sliding speed, for example:
slide_autoplay: auto sliding, for example:
slide_autoplaySpeed
hide_if_empty: don't generate any html tag if no posts were found, for example:
Last updated