A friend's heavily customized blog has a category with a specific
categoryname-single.php file to display posts.
Apparently for no special reason, since yesterday,
the_content() is not returning any content any more for posts in that category, even though the WP back-end is clearly showing content in the post.
All other categories are unaffected.
What I have tried / excluded:
There are no PHP errors: I have tried with
echo get_the_content()instead, to no avail.
I am working on the correct file: When I change something else in the file or hard-code some HTML text in it, it shows up on the page. That also excludes any caching issues
<? echo "start"; the_content(); echo " end"; ?> // outputs "start end";
The content is physically missing, it's not just hidden or something: I have inspected the DOM using the DOM inspector, and looked into the HTML source. Where there is supposed to be content, there is nothing.
This affects all articles in that category; none of them has been changed for weeks. They are all published.
The problem is not caused by some shortcode that doesn't get parsed: I have tried entering pure text into a post, with the same results.
There is no loop mix-up:
the_ID()returns the correct post ID.
The problem occurs for logged-in and not logged-in users.
There has been some installing and uninstalling of plug-ins yesterday, and some editing of files (although purely hygienic measures like removing superfluous comments and such) by the blog owner. I can't exclude that one of these things caused the issue, but I can't really see how.
I'm at my wit's end. My questions:
Is there any way to output the raw, unfiltered post HTML to find out whether this is a rogue filter deleting all the content in that specific category for some weird reason?
What else could cause a wholesale deletion of content in one category only?
Does anybody have any other ideas on how to debug this?