$attributes['layout'],
'filter_ids' => $attributes['filter_ids'],
'orderby' => $attributes['orderby'],
'order' => $attributes['order'],
'maximum' => $attributes['maximum'],
'number' => $attributes['number'],
);
echo '
';
// Convert filter ids.
if ( $params['filter_ids'] ) {
$params['filter_ids'] = wp_parse_list( $params['filter_ids'] );
foreach ( $params['filter_ids'] as $key => $slug ) {
$term = get_term_by( 'slug', $slug, 'category' );
if ( isset( $term->term_id ) ) {
$params['filter_ids'][ $key ] = $term->term_id;
}
}
}
powerkit_featured_categories_output( $params );
echo '
';