• Hey!
    Im using:
    echo wp_html_excerpt(get_the_content(), 220 );
    echo ‘…<span class=”readmore”>ID) . ‘”> Read more →</span>’;} ?>

    …to get the post excerpt to be able to know the height of the thumbnail+excerpt. However, I ran into some trouble when I noticed that the excerpt from a regular post is wrapped in a paragraph tag <p>, but the excerpt from a post with custom post format: video is not.
    How can I make all post format excerpts be wrapped in a paragraph?

    Cheers!

  • The topic ‘Post excerpt in but not custom format excerpt’ is closed to new replies.