I have an RSS feed that should include any posts that do not have any of these attributes:
- A tag "conferencebox"
- A category "Appearances"
- A category "Appearances_Archive"
That is... any one of those qualities means it shouldn't be in the RSS feed.
I tried this:
<MTEntries category="NOT Appearances AND NOT Appearances_Archive" tag="NOT @conferencebox" lastn="15">
but I get this error:
Publish error in template 'RSS': Error in <mtEntries> tag: You have an error in your 'category' attribute: NOT Appearances AND NOT Appearances_Archive
When I reduce it to:
<MTEntries category="NOT Appearances" tag="NOT @conferencebox" lastn="15">
it works as expected (I get the Appearances_Archive posts) but the others are excluded.
I've tried renaming the category so that it doesn't have a "_" in it, but that doesn't fix the problem.
If I change it to:
<MTEntries category="NOT Appearances AND NOT appearancesarchive" tag="NOT @conferencebox" lastn="15">
I don't get an error, but the RSS feed still includes the "appearancesarchive" posts.
This also doesn't get an error, but doesn't not produce an RSS feed as I want:
<MTEntries category="NOT (Appearances OR appearancesarchive)" tag="NOT @conferencebox" lastn="15">
I've tried various combinations of CamelCase, lowercase, with and without "_". No luck.
Versions: Movable Type Pro version 5.2.3 with: Community Pack 1.92, Professional Pack 1.72
Yes, this is possible, and I believe your first attempt should have worked.
One install I tested using 4.37. This works fine:
Then I used a 5.2.6 Pro install to rename two categories and a tag to match yours. I changed the labels to match yours but made the basenames random characters to make sure it didn’t have to do with basenames. I was able to publish your exact snippet, and the returned entries seem as expected:
I checked if 5.2.3 might be the problem, but I don’t think so. A diff of lib/MT/Template/Tags/Entry.pm between 5.2.3 and 5.2.6 shows no substantial changes:
So I’m currently at a loss as to why you got the error, but I’m posting this as an answer because it answers the question in your title!
Could you provide a link to the text of the full template? Perhaps a list of any nonstandard plugins you might have installed?