Exchange Theme API: product (featured-image)

From IThemes Codex
Revision as of 17:43, July 30, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'product', 'featured-image' ) )
	
Parameters
	string - $context the context or context.tag combination, if context.tag is used, the tag parameter can be omitted.
	string - $tag the tag, can be hyphenated or not. Prefix with 'get' as shorthand for the return=true option.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).

Returns
	The product's featured image

Description

Used to display the featured image in a product loop.

Options

'size' - The size output of the featured image.
	$default: 'large'
	$options: large, thumbnail
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'product', 'featured-image' ); ?>

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox