• Resolved wilmart


    Hi, I found your plugin very interesting, I’m using the “List Mini” Layout and I’m wondering if is posssible to also show the excerpt.

    Thank you so much

Viewing 1 replies (of 1 total)
  • Plugin Author 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.


Viewing 1 replies (of 1 total)
  • The topic ‘Show excerpt’ is closed to new replies.