Exchange Theme API: product (permalink)

From IThemes Codex
Revision as of 13:23, July 30, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'product', 'permalink', 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 permalink.

Description

Displays the link to the product page within a product loop.

Options

'before' - Used to wrap the permalink in an anchor tag (requires format to be html).
	$default: '<a href="'
	$options: Any valid html.
'after' - Used to wrap the permalink in an anchor tag (requires format to be html).
	$default: '">' . it_exchange( 'product', 'get-title', 'format=' ) . '</a>',
	$options: Any valid html.
'format' - Used to change the format of the output.
	$default: 'html'
	$options: url, html
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Examples

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

Usage

None.

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox