Products in a Table

This demo shows how you can have multiple products listed in a grid for rating. But, the catch here is that these products are not part of WordPress – they are not posts or any other data, they might be random products just linked for affiliate purposes.

In this demo, the product’s ratings are assigned to the new rating type, belonging to Custom entity, where we created Type called ‘Products’. And, since we need a unique ID for each one (and ID has to be a positive integer), these ID’s are created based on the ID of this page with added 2 zeroes and numbers 1 to 5 (5 rows).

And, since these are all products that don’t exist in the database, and they don’t have a way to provide names to the plugin, each shortcode defines a title for the item that the plugin will store in the rating database table. So, an example shortcode for every rating in the list is based on this:

[gdrts_stars_rating title="The Phone #1" type="custom.product" id="228001"]

Check out the article about this demo in the Knowledge Base: Products in a Table.

ProductIDRating
The Phone #1228001
Rating: 3.88/5. From 8 votes.
Please wait...
The Phone #2228002
Rating: 3.83/5. From 3 votes.
Please wait...
The Phone #3228003
Rating: 4.25/5. From 2 votes.
Please wait...
The Phone #4228004
Rating: 4.25/5. From 2 votes.
Please wait...
The Phone #5228005
Rating: 4.00/5. From 2 votes.
Please wait...
ProductIDRating
Do you find the content of this page helpful?
+2
-1
Rating: +1. From 3 votes.
Please wait...