Search code examples
expressionengine

How do I filter out comments for Draft/Closed posts?


In Expression Engine, I'm using {exp:comment:entries} but I need it to filter out comments for a blog post that is in draft/closed status.

{exp:comment:entries limit="5" dynamic="no" channel="blog"}{/exp:comment:entries}

It looks as though I need to work with {status} or {entry_status} but neither work as a parameter or in a conditional?

How can I do this?


Solution

  • Are you saying you tried this exactly:

    {exp:comment:entries limit="5" dynamic="no" channel="blog" entry_status="not closed|draft"}{/exp:comment:entries}
    

    ??

    That's what I would expect would work.