Remove category from Related Articles filter

Posted in: Newspaper
Post count: 27

Hello,

I have a category called “All” that includes every post from every other categories.
The problem with this is that the Related Articles filter is filtering the “All” category showing every post solely based on that category, which is understandable.
To solve this, I need to exclude the “All” category from the Related Articles filter?
Is this possible?

Thank you.

Post count: 22421

Hello,

If you use one general category then if your related articles are selected based on categories, all the articles will show up. There is another option though, to filter the related articles by tag: http://screencast.com/t/szWCM4198D so this element will only show articles with the same tag as the viewed post.

I hope this helps.
Thank you!

Post count: 27

Hi Bogdan, thank you for answering!

I know there is an option to filter the Related Articles by tag but that’s not exactly what I need.
Using the Related Articles by category is good enough, the problem is that having a category “All”, makes this filter useless, which is understandable as it’s going to filter the “All” category and return/show every post.
To solve this, I need to exclude the category “All” from the “Related Articles by category” filter, so it uses every other category as filter.
How can I achieve this? Maybe somewhere in td_block_related_posts.php?

Thank you

Post count: 22421

Hi,

You can maybe try this method in td_module_single_base.php: http://screencast.com/t/Vppmf7wPMW6

Let us know how it goes.
Thanks.

Post count: 27

Thank you Bogdan! It worked like a charm.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.