my site is http://www.examplaza/answers

am trying to use this code to pull the excerpt (first 33 characters of my post) <?php echo excerpt(33); ?> but it ended up leaving an empty space.

the theme am using is using

1 Answer 1


Please add below code in theme functions.php

remove_filter( 'the_excerpt', 'wpautop' );
  • Please edit your answer, and add an explanation: why could that solve the problem?
    – fuxia
    Commented Sep 20, 2017 at 10:43
  • Should be removed only to get the excerpt, and restore right after.
    – Ismail
    Commented Sep 20, 2017 at 22:57
  • I don't understand this answer... Commented Sep 22, 2017 at 16:47
  • thank you so much Commented Aug 12, 2020 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.