Function asa2_render_collection
Renders a collection like shortcode [asa2_collection] would do.
Example:
echo asa2_render_collection('my_collection_name');
echo asa2_render_collection('my_collection_name', array(
'tpl' => 'my_collection_tpl',
'orderby' => 'rand',
'limit' => 3
));
Parameters summary
string |
$collection |
Collection name or ID. |
array |
$options = array() |
Optional. |
Return value summary
string
|
The generated output.
|
Thrown exceptions summary
Asa2_Renderer_Exception
|
If $collection is empty.
|