I've been trying for days to figure this thing out. I'm building a News section in the site, and under news are 3 categories: Updates, Events, Archive. When you click on one of the categories, i want it to list all the entries where it is under that category, but no matter what I try I just get a 404 error.
Here are my settings: Channel short name: news Group Assignments > Category group: News Category Group Name: News News Categories: updates, events, archive
And here is my current code (though I've tried many many different options and version:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
{embed="Pages/styles"}
{embed="Pages/scripts"}
{exp:channel:entries channel="news" dynamic="no" limit="1"}
<title>{site_name} - {structure:page:title}</title>
<meta name='keywords' content='{news-keywords}' />
<meta name='description' content='{news-description}' />
{/exp:channel:entries}
</head>
<body>
{embed="Pages/header"}
<main>
<nav id="breadcrumbs">{exp:structure:breadcrumb inc_home="no" here_as_title="yes" separator=":"}{/exp:structure:breadcrumb}</nav>
{exp:channel:entries channel="news" category="{segment_2_category_id}" dynamic="no"}
<article>
<h1>{title}</h1>
<p>Author: {author} Posted: {entry_date format="%M %j, %Y"} at {entry_date format='%h:%i %A'}</p>
<p>{news-content}</p>
</article>
{/exp:channel:entries}
<aside>
<ul>
<li>Categories</li>
{exp:channel:categories channel="news" style="linear"}
<li><a href="{path='news/{category_url_title}'}">{category_name}</a></li>
{/exp:channel:categories}
</ul>
</aside>
</main>
{embed="Pages/footer}
</body>
</html>