This package can be installed in WordPress site using JReviews to easily allow access to JReviews fields from the $post object.
Download the jreviews_postmeta.zip plugin package and install using the WordPress plugins manager on your site.
To get the value of a custom field:
$value = $post->{'jreviews:jr_fieldname'};
If the field has multiple options, it will return array.
You can also retrieve the average user rating via:
$rating = $post->{'jreviews:rating'};
-
The plugin doesn't process output formatting settings within JReviews custom fields.
-
Supported custom fields include:
- select
- selectmultiple
- radiobuttons
- checkboxes
- text
- decimal
- integer
- date
- relatedlisting
- website
The MIT License (MIT). Please see License File for more information.