Is there a way to filter {exp:channel:entries} based on the number of rows in a Grid field?

1 Answer 1


Not natively, no. But you could use the Query module to populate the entry_id parameter:

{exp:channel:entries channel="foo" entry_id="
    {exp:query sql="
        SELECT entry_id, count(*) AS count 
        FROM exp_channel_grid_field_XXX 
        GROUP BY entry_id 
        HAVING count > X" 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.