gdrts_slider_review
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
[gdrts_slider_review]
This shortcode displays rating block for any rating item, and you need to specify which item to show. If template, style, alignment and distribution attributes are missing, the plugin will use default values.
List of attributes
- type: entity and name of the type connected with a dot like this: {entity}.{name} and both are required.
- id: real ID of the item you want to show. If this is for the post, this is post ID.
- item: internal item ID of the item you want to show. If you provide this number, you don’t need to provide type/id attributes.
- class: CSS class for the shortcode wrapper.
- template: name of the template to use for display. Supported values: default, classic and more. List of templates can be expanded, and list of all available templates is listed on the Templates panel in Information menu. This shortcode can use templates listed under Stars Rating / Single Block.
- alignment: alignment of the rating block. Supported values: left, right, center, none.
- style_theme: styling theme to use. Supported values: default.
- style_show_grid: the grid is displayed under the slider. Supported values: true, false.
- style_show_minmax: min and max values are displayed at the ends of the slider. Supported values: true, false.
- style_show_rating: floating rating badge next to the slider. Supported values: true, false.
- style_class: additional CSS class to add to rating block wrapper.
Example
[gdrts_slider_review type="posts.page" id=1 template="default" style_show_grid="false"]