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
    Sep 20, 2017 at 10:43
  • Should be removed only to get the excerpt, and restore right after.
    – Ismail
    Sep 20, 2017 at 22:57
  • I don't understand this answer... Sep 22, 2017 at 16:47
  • thank you so much Aug 12, 2020 at 9:31

Your Answer

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

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