Hi,
I would like to know if it's possible to get the count of post according to their value in frontmatter.
Here is the context.
I made a recipe site for my family (amazing how much time you have in confinement 😄 ) .
I have a page that lists recipes.
Each recipe has a radio button field to set whether it's a starter, soup, salad, main dish or dessert.
I'm using this value with a js script to filter them on the front end. Everything works fine.
I'm simply trying to "echo" how many recipes for each value of recipe_type.
I know how to get the count of posts but not the count according to a variable.
I hope I was clear enough to describe my question.
Thank yu in advance.