Ultimate Member - Reviews: Shortcodes

Overview

This document provides instructions on how to use shortcodes and patterns of the extension User Reviews.

The reviews shortcode is used to display User ratings. The reviews shortcode can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content of a WordPress post or page.

Contents

[ultimatemember_most_rated] - Display most rated reviews

[ultimatemember_top_rated] - Display top rated reviews

[ultimatemember_lowest_rated] Display lowest rated reviews

Shortcodes

[ultimatemember_most_rated] #

Usage: Display most rated reviews.

Default attributes:

  • 'roles' => 0,        // the role slug or 'all'
  • 'number' => 5    // the number of shown reviews

Example:

[ultimatemember_most_rated number="3"]

[ultimatemember_top_rated] #

Usage: Display top rated reviews.

Default attributes:

  • 'roles' => 0,        // the role slug or 'all'
  • 'number' => 5    // the number of shown reviews

Example:

[ultimatemember_top_rated number="3" ]

[ultimatemember_lowest_rated] #

Usage: Display lowest rated reviews.

Default attributes:

  • 'roles' => 0,        // the role slug or 'all'
  • 'number' => 5    // the number of shown reviews

Example:

[ultimatemember_lowest_rated number="3"]