This is a strange one (i’ve been getting a lot of these recently).
I have related categories turned on to link between two weblogs. And for some reason some posts are relating even though they aren’t sharing a category (infact they don’t have any categories selected at all).
Weblog “projects” has a category group of “project categories”, currently all posts have no categories selected.
Weblog “blog” has category groups of “blog categories” and “project categories”, and some posts are tagged with categories from “blog categories”.
If I go to the single entry templates for projects I am getting realted blog posts showing up even though they arent sharing categories! It doesnt happen the other way around (the blog posts arent relating to the project page). It’s only happening with category ID 1.
It’s only happening on some posts, and i might be worth noting I imported a load of blog posts from wordpress (using the MT import untility)
I’ve checked exp_category_posts, and the project posts aren’t in the list (as they dont have any categories).
Below is the code:
<div class="main">
{exp:weblog:entries weblog="projects" orderby="date" sort="desc" limit="1" disable="pagination|member_data|trackbacks"}
<div class="post">
<h2 class="post-title">{title}</h2>
<p class="post-meta">Posted by {author} on {entry_date format="%d %F %Y"}{if allow_comments} | <a href="#comments">{comment_total} Comments</a>{/if}</p>
{project_summary}
{project_body}
<p class="post-meta">Posted in:
{categories backspace="7"}
<a href="{path=blog}">{category_name}</a>,
{/categories}
</p>
</div>
{if no_results}
<p>No Results</p>
{/if}
{/exp:weblog:entries}
{exp:weblog:entries weblog="blog" limit="5" related_categories_mode="on"}
{if count==1}<h3>Related Blog Posts</h3><ul>{/if}
<li><a href="{url_title_path=blog/entry}">{title}</a></li>
{if count==total_results}</ul>{/if}
{/exp:weblog:entries}
</div>
