How do I include the category name in the URL and have that link work? I have a blog channel with a category called 'news'. I need the url to be - www.mysite/news/blog-post-heading. I currently am just shoving the category name in there and I need to know how to build up the link, because if you click on the link it goes to a error page because its trying to use the a template group name and I have no template group called news.
{exp:channel:entries
channel="blog"
orderby="date"
sort="desc"
category_group="3"
limit="1"}
<h1><a href="/{categories}{category_name}{/categories}/{url_title}/">{title}</a></h1>
Do I make use of segments?