[Resolved] the_excerpt() ignores explicit excerpts from custom query
I’m using a custom query to extract and display my explicit excerpts of child pages using the_excerpt() outside the loop.
Everything works fine except that WordPress displays an auto-generated excerpt rather than the one stored in the database.
The query is selecting everything:
so I would assume that the post_excerpt is included in there.
And is followed by a foreach loop using setup_postdata().
If I replace the_excerpt() with get_the_excerpt() I get a big blank.
It looks to me like the database post_excerpt is getting lost somewhere. Is this a bug or do I need to do something else to get my excerpts back?
- The topic ‘[Resolved] the_excerpt() ignores explicit excerpts from custom query’ is closed to new replies.