• Resolved zanderlise

    (@zanderlise)


    Hi. I have been looking everywhere but cannot find the answer to this question.

    How can I prevent Display Posts Shortcode from stripping all formatting from manual excerpts? I have Display Posts Shortcode set to [include_excerpt=”true”], which I’m assuming uses the actual “Excerpt” field from within the post. I need the formatting of the Excerpt field to remain intact. I’ve tried setting classes to the various sections in the Excerpt, but it just ignores them.

    I understand how to use css to format the image, the title, the content, and the “more” link. I need the format of the Excerpt field to retain the heading, colors, line breaks, etc. Normally, WordPress retains formatting for manually entered Excerpts. And, I can see the formatting for the Excerpt field on other searches.

    How can I get Display Posts Shortcode to display the Excerpt field and the formatting?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yeah it just ignores your read more setting in your post and randomly makes it’s own

    Plugin Author Bill Erickson

    (@billerickson)

    Try adding this to your theme’s functions.php file:

    add_filter( 'display_posts_shortcode_full_manual_excerpt', '__return_true' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual Excerpt Formatting’ is closed to new replies.