Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hello,
    1/ Display Settings >> Fields settings >> Content >> Excerpt settings:
    please check option
    Allow HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt

    2/ Please add this code to file functions.php of your active theme:

    /* CVP - allow more tags in excerpts */
    add_filter( 'pt_cv_allowable_tags', 'my_allowable_tags', 100, 1 );
    function my_allowable_tags( $args ) {
    	$args[] = '<p>';
    	return $args;
    }

    (Fyi, please check this document http://docs.contentviewspro.com/allow-other-tags-in-excerpts/)

    Best regards,

    Thread Starter trevorNanders

    (@trevornanders)

    Excellent! Many thanks for the reply.
    works great.

    Hello,

    I have tried adding the exact code you posted to add the <p> HTML tag but it still strips it from the excerpt.

    Any idea why?

    I added the code at the end of the functions.php of my active theme.(I only have one theme installed anyways).

    I have also checked the option for the HTML tags but it does not help.

    Any idea?

    How can I debug this to see where is the issue?

    Cheers

    Let me know thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Excerpt with linebreaks’ is closed to new replies.