Reply To: Filterable Portfolio Shortcode?

#1233
livemesh
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');