Multiple Subcategories

Posted in: Newspaper
Post count: 11

Hi Tagdiv,

Is there a way to set up the latest articles by choosing only categories and excluding all the subcategories?
I set the filter on loop articles for single categories but it didn’t work. The theme picks all categories and subcategories.

Post count: 35449

Hi,

If you want to display posts from a category and remove the posts included in one of it’s sub-categories, first add the parent category ID (ex. Fashion category: 341) and after it place the sub-category ID (ex. Daily subcategory id: 342) with a ‘-’ symbol in front, like it’s shown in the image. If you decide to use the ‘multiple categories filter’, the standard Category Filter will be ignored.

Please check the Filter Tab documentation from Block settings tutorial: https://forum.tagdiv.com/block-settings-tutorial/

Thank you.

Post count: 11

Hi Calin,

Our website is temporary hosted on the link: http://www-0i32i.hosts.cx/

We’ve already tried to insert the categories id in different ways. You can see on the screenshot in the link one of them (https://www.dropbox.com/sh/l6kn97yh794t6u1/AAACZ4ahgtFioe5SfR54N8K-a?dl=0)

We’ve also tried to insert the id codes as you can see below:

(17,26,27,28,29,30,-22,-18,-131,-25,-21,-23,-24,-19,-43,-39) inserting the main categories and then adding the ones we would like to exclude.

and also:

(-22,-18,-131,-25,-21,-23,-24,-19,-43,-39,-41….) trying to only insert the subcategories ids of the ones we would like to exclude from our dropsdown menu.

Post count: 35449

Hi,

In order to hide subcategories you need to go in posts>categories, and hover the subcategory ( https://www.screencast.com/t/qyXjm8eB0bCJ ), then all you need to do is to filter the categories ( https://www.screencast.com/t/6xmUIxncEWkf ).
See the results: https://www.screencast.com/t/sFIvIKzbqndC

Thank you.

Post count: 11

Hi Calin,

I’m sending you a link with the updated screenshots in order to make our issue more clear to you.

What would be our best option to avoid having those multiple categories?

It’s important to notice that our subcategories are cities and our main categories are the topics.

(https://www.dropbox.com/home/Ad%20Cloud/Ad%20Com/Lecco%20notizie/Sito/utili/Newspaper%20Support/Filter%3ACategories-Subcategories)

Post count: 35449

Hi,

I think you refer to drop down ajax filter ( https://www.screencast.com/t/9f8SBSxP0i0 ), if is so then you need to look for filter type ( https://www.screencast.com/t/8gxjJXp7 ), and for ajax you can set just positive numbers .

Thank you.

Post count: 11

Hi Calin,

First of all I would like to thank you for the support.

Would it be possible to add extra rows on the main menu?

For example: for the Cronaca category, we have 8 other subcategories (https://www.dropbox.com/sh/irb4ezd3iqb3gvb/AACwOnOkgFcE79ZaJWdm9CKSa?dl=0). Although we can only see 5 of them. How would be able to solve that as well?

Thanks in advance

Best regards

Post count: 35449

Hi,

If I understand correctly, you say you have 8 subcategories, and is show only 5 of them in mega menu.
If you set the subcategories like this https://www.screencast.com/t/bgLVMDOPn5K in mega menu with subcategories you’ll look like this:
https://www.screencast.com/t/Xiy3FkN9AF0
Will appear a scroll bar.
Please take a look if your subcategories structured is like mine.

Thank you.

Post count: 11

Hi Calin, I have a problem with the drop down ajax filter in my site https://lecconotizie.com/ ..Can you kindly look at these screensshot? (https://drive.google.com/drive/folders/1FTd-9REcinTt5EApxYAz23rfDk2u0mpH?usp=sharing) thank you… I set up how you tell me in 19 Octobre but the category “Pubbliredazionali” is into the loop..even if I did not enter it as id.
Sorry my terrible english
I hope you understood

Best regards

Post count: 35449

Hi,

Please provide some screenshots with the settings you made in the block filter to exclude that category.

Thank you.

Post count: 11

Hi Calin, thank for you support.
Here the screenshots: https://drive.google.com/drive/folders/1WtP7IeBfZUEdeQesFD1-H-pQVYXb8MMo So, I wan’t the Category “Pubbliredazionali” (id:14493) in my loop of posts..also other categories are recalled and this should not happen..
Again Thank you

Post count: 35449

Hi,

The settings seems to be well set.
Please make a test, make a new page an set other block and set those id again, see if that category is still showing.

Thank you.

Post count: 11

I did it but not work..I maked new page with the same filter settings but the Pubbliredazionali’s post are there into the loop. Don’t must be it! I am worried beacause the site is online and the customer complains about my work.

  • This reply was modified 7 years by Calin.
Post count: 35449

Hi,

I check again and this time the filter works correctly
-> https://www.screencast.com/t/sXb3Q1KjpqxC

Thanks.

Post count: 11

Hi,

the filter works correctly..because I tryed to set up added this setting: (https://drive.google.com/open?id=1h4ZOkMNKY9apBGZjjUvhHMHhuvOHR9Yi) and finally it works…but Today I am in allert: becuase the posts that there are into “All” (in italian: Tutte) hasn’t all posts that there are in the other categories, like: cronaca, politica, economia… etc. Moreover the All’s loop posts is update to yesterday (https://drive.google.com/open?id=1h7qP0wfgxsA0w2Le95py9VX63zBCfiZb)! differently of loop’s posts for example of “politica” (https:https://drive.google.com/open?id=1OTPaHyD2y_Lj_f-t_4SvKdFhWbKBxi9x).. In fact This it has rightly the today’s articles; like the the other categories but this it’s not been for “All”!

Here site login credentials: https://drive.google.com/drive/folders/1FTd-9REcinTt5EApxYAz23rfDk2u0mpH?usp=sharing

Thank for support
Help me please

  • This reply was modified 7 years by datt.
Post count: 35449

Hi,

Please notice that in that block the all means all categories that it is set in that block filter, not from all posts that you have posted.

Thank you for your understanding.

Post count: 11

Calin I Know, but not work.
In that block, under “Politica” there are posts that in “Tutte” there is’nt, Do you understand?

Post count: 35449

Hi,

If you take a closer look for example this post have 3 categories -> https://www.screencast.com/t/Q21yzTs9OG one of them is set with “-“, so this mean that you want to hide that category, this means that those post that have that category will be set to hidden even if this post has set others categories that are set to be showing.

Hope this will help you to understand better!
Thanks.

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