Support Forums for LiveMesh Themes & Plugins › Forums › Enigmatic Theme Support › Filterable Portfolio Shortcode? › Reply To: Filterable Portfolio Shortcode?
July 30, 2013 at 10:33 am
#1233
Keymaster
Hi – sorry for the delay. If you have not done this yet already, pls create the shortcode in custom/custom-functions.php file. The following should work –
function mo_portfolio_shortcode() {
$args = array(
'number_of_columns' => 3,
'image_size' => 'large-thumb',
'posts_per_page' => 9,
'filterable' => true
);
$output = '';
// Note: Will need to modify the called method to return HTML instead of echo-ing
$output .= mo_display_home_portfolio_content($args);
$output .= '';
return $output;
}
add_shortcode('portfolio', 'mo_portfolio_shortcode');