I have a "featured item" part on my site that is controlled with a new status i created called "featured". I have 8 parent categories, and would like to have 8 different featured items, 1 unique for each category parent.
I am trying to make this dynamic so when I click on my category "central vacuum", then the item that is under the category central vacuums and has a status of featured to show.
I have come across a solution, which is to create 8 different statuses and then write 8 if statements, but I know theres another way around it I just can't seem to find one.
{exp:channel:entries channel="products" status="featured" limit="1" category_id="{segment_3}"}
<img src="{feature_image}"/>
{/exp:channel:entries}