1

I am experiencing a weird issue where I try and get_the_except() within my loop it brings back nothing although one has been set, also if I was to pass through the post id into the function, it gets the excerpt but shows it twice on my page.

Anyone know how to resolve this issue?

  • what is the point of asking question about code without showing it? – Mark Kaplun Mar 8 '17 at 13:15
  • 3
    Couple things to check - make sure you are echoing get_the_excerpt() since it returns the excerpt and does not display it. Also, make sure you don't have any theme actions/filters modifying the excerpt anywhere else. – Industrial Themes Mar 8 '17 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.