Hey Gang.
I’ve had some recent discussions on twitter and wanted to get some clarification on usage of the status parameter.
Please correct me if I’m wrong.
Most of this discussion relates to the channel:entries tag, but may carry over to other tags. Please advise as needed.
For this case, my status group as the statuses of: open, closed, draft, and featured.
Inclusion:
1. Status defaults to “open”.
2. Setting a single status using the status parameter (status=“featured”) will only show entries of that specified status. It will now not include entries of a “open” status.
3. Setting the status to multiple pipe separated statuses (status=“open|featured”) will show entries of those two statuses.
Exclusion:
4. Setting an exclude status (status=“not closed”) will now show all entries EXCEPT those with status of “closed”. It will show “open”,“draft”, and “featured”.
5. Setting the status to “not” multiple pipe separated statuses (status=“not open|closed|featured”) will show all entries except those specified. It will show only those of status=“closed” in this case.
Inclusion AND Exclusion:
A note was brought up about using both at the same time.
Is it possible to have a status parameter set to something like: status=“featured|not open”?
This is depending on the answers to the previous questions. If it only includes what you specify and does not include “open” by default, then this is answered.
Thanks!