Skip to content

Allows retrieving JReviews field data via get_post_metadata

License

Notifications You must be signed in to change notification settings

jreviews/wordpress-postmeta

Repository files navigation

Easily Access JReviews Fields from the Post Object

This package can be installed in WordPress site using JReviews to easily allow access to JReviews fields from the $post object.

Installation

Download the jreviews_postmeta.zip plugin package and install using the WordPress plugins manager on your site.

Usage

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'};

Limitations

  • 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
    • email

License

The MIT License (MIT). Please see License File for more information.

About

Allows retrieving JReviews field data via get_post_metadata

Topics

Resources

License

Stars

Watchers

Forks

Languages