I had a problem when using module to list blog posts on homepage. Since i have hundreds of categories, i could not add all of them as menu items. So, i have added only few, main categories.
Problem arised when some of the blog posts are assigned to child categories. Links do not use SEF. To fix that, i have added code to look up parent category for that child category.
In module's folder, open helper.php and look for
if( $routeTypeCategory )
{
$xid = EasyBlogRouter::getItemIdByCategories( $post->category_id );
}
and replace it with
if( $routeTypeCategory )
{
$xid = EasyBlogRouter::getItemIdByCategories( $post->category_id );
if(empty($xid))
{
$categories = array( $post->category_id );
EasyBlogRouter::getCategoryParentId( $post->category_id , $categories );
foreach($categories as $pcat)
{
$xid = EasyBlogRouter::getItemIdByCategories( $pcat );
if(!empty($xid))
{
break;
}
}
}
}