[dis]cluding a Specific Category

Posted in: Newspaper
Post count: 263

Is there a way to not include a specific category when selecting the options in the for blocks and sections such as http://screencast.com/t/Qs6DvohnWt. I use block 1 and I want all categories but 1 to display random posts.

Post count: 6600

Hi,

You can use the “Multiple categories filter:” like this: http://screencast.com/t/W7UT9Aec Add the ID’s of the categories that you want to show in that block and just exclude the one you don’t want to show.
You can find the category ID’s here: http://screencast.com/t/kKVTLxSCa
Hope this helps!

Thanks

Post count: 263

Unfortunately, I just tried this and it is not working. I am still seeing the 2 categories in the page blocks and widgets. I have placed all 60+ category numbers in multiple categories field because I want those to show but no difference (http://screencast.com/t/k3beLnoG3).

Post count: 322

I haven’t tried it since one of the last v3 releases, but don’t put a space between the comma and next category.

Even better, don’t list the categories you do want, list the ones you don’t want.

-25,-1054,-85
Like that. Works great for me to exclude two categories while “All Categories” is selected at the top.

Post count: 263

@Kronos17, you’re the man! I believe this worked. Thanks!

Post count: 3343

Hi,
Yes, you need to exclude the unwanted category like: -23.

Thanks @Kronos17 for the help!

Post count: 322

Sure thing @sbo, Glad to help.

Post count: 263

@Marius, is there a certain way to hide a subcategory and its posts within it’s parent category section?

Post count: 6600

Hi,

You can exclude the subcategory the same way using that subcategory ID (-10), it will exclude just the subcategory and its posts.

Thanks

Post count: 263

@Lucian, is there a way to disclude certain categories in the ‘Related Posts’ area below the post?

Post count: 6600

Hi,

You could try to add this 'category_ids' => '-207' into the td_module_blog.php like this: http://screencast.com/t/BFo1tgoIrD5

Thanks

Post count: 1

A little confusion here. What’s the point of the multiple category filter if it only works by subtracting categories you don’t want?

For instance, I want to only display category 5 & 6 so I input 5,6

with 5,6 listed out I still see every category so it doesn’t really filter at all.

If I exclude posts, however then I can display exactly what I want.

Isn’t the purpose of filtering by multiple categories to display only what you want?

Post count: 6600

Hi,

This also works filtering posts just from categories you add, using ID’s, in the “Multiple categories filter:” like you also mentioned: http://screencast.com/t/Pak9pANaz Please make sure that you do this right as I have also tested this and found no issues with this, only the posts from the desired categories were returned.

Thanks

Viewing 13 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic.