Exchange Theme API: product (title)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'product', 'title', array( 'option' => 'value' ) )
	
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 array( 'return' => true ) option.
	mixed  - $options associative array.

Returns
	The product title.

Description

Displays the title within a product loop.

Options

'wrap' - Used to wrap the title in an html tag (requires format to be html).
	$default: 'h1'
	$options: Any valid html tag.
'format' - used to change the format of the output.
	$default: 'html'
	$options: text, html
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Examples

<?php it_exchange( 'product', 'title' ); ?>

Usage

None.

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox