I have a template that displays the categories in a channel. I want the link to direct to the first entry in that category and the link should include the url_title in the last segment as I will be needing it.
here is my code for the categories but how do I include the link to the first entry?
{exp:channel:categories channel="portfolio" show_empty="yes" style="linear"}
<a href="{path='showroom'}"><img src="{category_image}" border="0"/></a>
<a href="{path='showroom'}">{category_name}</a>
{/exp:channel:categories}
So rather than the first link going to: http://domain.com/showroom/category/category_name
I would like it to go to: http://domain.com/showroom/category/category_name/url_title (this would be the first entry in the chosen category)