Plugin Author
Veda
(@vedathemes)
Hi there,
Sorry for late reply.
Put following code at the end of your child theme’s functions.php file OR use code snippets plugin.
function dpt_custom_styles( $styles ) {
$styles['dpt-list2'] = array(
'label' => esc_html__( 'List - Mini', 'display-post-types' ),
'support' => array( 'thumbnail', 'title', 'meta', 'excerpt', 'category', 'ialign' ),
);
return $styles;
}
add_filter( 'dpt_styles', 'dpt_custom_styles', 12 );
function dpt_custom_map( $arr, $style ) {
if ( 'dpt-list2' === $style ) {
return array( 'thumbnail-medium', array( 'category', 'title', 'meta', 'excerpt' ) );
}
return $arr;
}
add_filter( 'dpt_style_args', 'dpt_custom_map', 12, 2 );
Now excerpt option is added to list mini style.
Please inform if you need more help on this.
NOTE: Always backup before making PHP changes.
Thanks,