1

I need to keep showing excerpt in list of articles on my index, while, not showing it on single post page.

I am using more tag to manually define excerpts.

Is there a way to trim excerpt from the post?

3

Don't use the more tag to manually define excerpts. There's a separate input field for that. If it's not visible, go to "screen options" in the upper right corner of the edit screen to enable it.

What exactly is shown on your single and archive pages depends on your theme. There is no general way to address this. But if you use the excerpt field for what it is meant to do, any decent theme will pick it up and display the excerpt on archive pages and the post (where you have removed the excerpt) on the single page.

1
  • Thank you for your suggestion - That's exactly what I was looking for. Even easier, I thought I'd need custom filter or something like that. I am outputting content by the_content() function in my theme, so all is looking good now. Appreciate your help! – notnull Sep 2 '16 at 17:17

Your Answer

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

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