Difference between revisions of "JReviews:ShortCodes"

From JReviews Documentation
Jump to: navigation, search
Line 24: Line 24:
 
| '''parameter''' || '''example''' || '''available options'''
 
| '''parameter''' || '''example''' || '''available options'''
 
|-
 
|-
| listing_order || listing_order="latest" || latest|rdate|rating|rrating|topratededitor|raviews|random|featuredrandom|rhits|proximity
+
| listing_order || listing_order="latest" || available options: latest, rdate, rating, rrating, topratededitor, raviews, random, featuredrandom, rhits, proximity
 +
|-
 +
| summary || summary="0" || 0 - disabled, 1 - enabled
 +
|-
 +
| summary_words || summary_words="10" || enter the number of words
 +
|-
 +
| show_category || show_category="0" || 0 - disabled, 1 - enabled
 +
|-
 +
| fields || fields="jr_state,jr_city" || Comma separated list of custom fields to show
 
|}
 
|}
  

Revision as of 12:01, 14 September 2016

JReviews Shortcodes allow you to embed listings or reviews inside an article text.

For example, this shortcode would display a listing with an alias "westville-east":

[jreviews type="listings" listing-alias="westville-east" summary="1"]

Inside an article that shortcode displays this:

Shortcodes-example.png

There are two types of shortcodes:

Listings shortcode

There are many parameters that you can use:

parameter example available options
listing_order listing_order="latest" available options: latest, rdate, rating, rrating, topratededitor, raviews, random, featuredrandom, rhits, proximity
summary summary="0" 0 - disabled, 1 - enabled
summary_words summary_words="10" enter the number of words
show_category show_category="0" 0 - disabled, 1 - enabled
fields fields="jr_state,jr_city" Comma separated list of custom fields to show