I have used categories a bazillion times without incident so I think I’m just having a brain failure moment, but for some reason I can not get categories to work and allow the user to sort the entries from the weblog in question by the assigned category. I have the global weblog preferences turned on so that the category_url_titles are being used and the trigger word is “category”.
I stripped out all other code and here is the page I’m having issues with.
http://www.summerbeach.com/rentals/index.php/photogallery-tester/
If you click on a category, say “Sea Chase” the page returns all the entries, not just the ones categorized as Sea Chase as expected.
http://www.summerbeach.com/rentals/index.php/photogallery-tester/category/sea_chase
This is my code:
{exp:weblog:entries weblog="photos" limit="100" dynamic="on" category_group="2"}
<!-- ======= div for rental preview starts ========= -->
<div>
<h4>Category Assigned: {categories}<a href="http://{site_url}index.php/photogallery-tester/category/{category_url_title}">{category_name}</a>{/categories}</h4>
<p> <div><br />
<a href="http://{site_url}index.php/photogallery/view/{url_title}">{exp:imgsizer:size src="{gallery-cover}" width="209" height="223" alt="{title}" title="{title}"}</a><br />
</div><br />
</p><h4>{title}</h3>
</div>
<!-- ======= div for rental preview ends ========= -->
{/exp:weblog:entries}
I also tried
{exp:weblog:entries weblog="photos" limit="100" dynamic="on" category_group="2"}
<!-- ======= div for rental preview starts ========= -->
<div>
<h4>Category Assigned: {categories}<a href="http://{path=summerbeach/photogallery-tester}">{category_name}</a>{/categories}</h4>
<p> <div><br />
<a href="http://{site_url}index.php/photogallery/view/{url_title}">{exp:imgsizer:size src="{gallery-cover}" width="209" height="223" alt="{title}" title="{title}"}</a><br />
</div><br />
<h4>{title}</h3> <br />
</div><br />
<!-- ======= div for rental preview ends ========= --><br />
{/exp:weblog:entries}
What am I doing wrong? Running ExpressionEngine v 1.7.0