Looking for help?

How to Display Custom Post Type Reviews Using the [rvx-review-list] Shortcode

While ReviewX automatically integrates into standard single product and post templates, custom website layouts, landing pages, and headless designs often require surgical placement of review sections. The [rvx-review-list] shortcode provides complete flexibility to embed a fully interactive, filterable review list for any post type anywhere on your WordPress site.

By passing the post_type parameter, you can render reviews for WooCommerce products, Easy Digital Downloads, LifterLMS courses, portfolios, recipes, or custom directories with complete control over pagination, sorting, and media filters.


1. Shortcode Syntax & Supported Attributes

The standard syntax for displaying custom post type reviews is:

[rvx-review-list post_type="your_cpt_slug"]

Review the comprehensive table of available parameters below:

Attribute Default Description
post_type product Slug of the post type (e.g., download, course, portfolio, book).
post_id Current Post ID (Optional) ID of a specific post. When placed on a single post template, it automatically resolves to the current post.
per_page 10 Number of reviews to display per page before pagination controls appear.
filter on Display (on) or hide (off) the top filter and sorting toolbar.
sort_by recent Initial sort order: recent (newest first), high-rating, or low-rating.
attachment all Filter reviews: all, photo (photos only), or video (videos only).

2. Practical Usage Examples Across Common CPTs

  • Easy Digital Downloads Product:
    [rvx-review-list post_type="download" filter="on" per_page="8"]
  • LifterLMS Course Review Section:
    [rvx-review-list post_type="course" sort_by="high-rating" per_page="6"]
  • Specific Portfolio Showcase (Targeting Post #42):
    [rvx-review-list post_type="portfolio" post_id="42" filter="off"]
  • Photo & Video Only Testimonial Wall:
    [rvx-review-list post_type="product" attachment="photo" per_page="12"]

3. Inspecting and Generating Shortcodes in the Admin

ReviewX includes a dedicated shortcode directory in the WordPress admin to help you copy pre-built shortcodes:

  1. Navigate to ReviewX → Shortcodes in your WordPress dashboard.
  2. Scroll to the Review List Shortcode row.
  3. Click the Copy button to grab the base shortcode, or use the interactive preview generator to customize attributes.

ReviewX Shortcode Builder and Custom Post Type Review List Embedding

Shortcode Builder Highlights:
(1) Shortcode Syntax Box: Formatted shortcode snippet ready to paste into any page builder or block.
(2) Action Controls: One-click copy action for rapid site development.

4. Embedding Shortcodes in Page Builders & PHP Templates

You can insert the shortcode using any of your favorite WordPress editing workflows:

  • Gutenberg Block Editor: Add a Shortcode block and paste [rvx-review-list post_type="download"].
  • Elementor Builder: Insert a Shortcode widget and paste your customized shortcode.
  • Divi & Oxygen Builders: Add a Code module and paste the shortcode.
  • PHP Theme Files: Execute the shortcode directly in custom templates:
    <?php echo do_shortcode( '[rvx-review-list post_type="' . esc_attr( get_post_type() ) . '"]' ); ?>

What are your feelings
Updated on 30/09/2026