Excerpts not working on custom posts
-
Hello forum
I’m working on a twentyeleven child theme, with four custom post types, and all was proceeding smoothly until I noticed that, in search results, anything that was a custom post isn’t showing the excerpt – instead, it displays the word “Array”. I find it especially annoying that it starts with a capital “A” for some reason.
Posts and pages, on the other hand, show the excerpt just fine, thanks.
Of course, it’s not just search results – anywhere I try to display the extract from a custom post type, the word “Array” appears instead.
I’ve added support for hand-crafted excerpts, and the box comes pre-populated with that word again: “Array”. If I edit this text, the new custom extract displays as expected.
Don’t know what else to add, other than writing a custom extract for every post is not an option.
Any ideas? Thanks!
- The topic ‘Excerpts not working on custom posts’ is closed to new replies.