Shortcode Basics
All of the widgets that ship with this plugin have a correspondong shortcode version that is very similar in functionality.
The shortcodes all start with the prefix sjf_et
, because that is the namespace for this plugin.
Several of the shortcodes feature options for specific product or category ID numbers, or multiple ID numbers. Shortcodes that accept multiple ID numbers always require them to be a comma-seperated list.
Some key terms you might see in some of the shortcodes:
- order: Sort the items in ascending or descending order.
- order_by: The field by which to sort the items.
- enabled: Limit results to enabled or disabled products.
- hidden_categories: Limit results to hidden or visible categories.
Accordion Shortcode
The accordion shortcode can be used like this:
You may specify an `order` („ASC“ or „DESC“).
You may specify a field for `order_by` („name“, „category_order“, „product_count“, or „date_created“).
You may specify a value for `enabled` („true“, „false“ or „both“).
You may specify a value for `hidden_categories` („true“ or „false“).
Autosuggest Shortcode
The autosuggest shortcode can be used like this:
You may specify a value for `enabled` („true“, „false“ or „both“).
Popup Shortcode
The popup shortcode can be used like this:
You must specify a product, by ID number, or the shortcode will not output anything. In the above example, 46093237
is a product ID number.
RSS Shortcode
The RSS shortcode can be used like this:
You may specify a text label which will appear next to an RSS icon, and you may specify the number of products using the „limit“ setting.
The shortcode points to a special RSS feed for your store products. You may need to clear your caches (see above) in order for this feed to work.
The feed is valid RSS2 and can be used with services like MailChimp and FeedBurner. It is not a Google Merchants feed and will not work as one.
Your feed can be found at https://crout.de/?feed=products.xml&limit=10
.
Slider Shortcode
The slider shortcode can be used like this:
You must specify some products, by ID number, comma-seperated, or the shortcode will not output anything.
You may also specify an image size: „thumbnailUrl“, „imageUrl“, „smallThumbnailUrl“, „originalImageUrl“
Sortable Shortcode
The sortable shortcode can be used like this:
You may specify categories, by ID number, comma-seperated, or the shortcode will output products from all categories.