Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Maeve Lander

    (@enigmaweb)

    Hey thanks for reporting this @rmoss. I haven’t done a heap of testing with subcategories so it’s good to have this pointed out. I’ll look into it!

    Thread Starter rmoss

    (@rmoss)

    Thanks Maeve

    I am seeing this same issue. I have a Category and then want to sub-categorize everything in it into each letter of the alphabet, to make finding things easier and for organizational purposes. So I make other (sub)categories named “A”, “B”, “C”…”Z” and assign them to the Parent Category. For any Article, if I assign say “A” to them only, then the Main Category will show “Articles 0”. If I assign them to both the main category and the sub-category (“A”), the count would of course be correct for the main category. Not sure which would be the preferred method but it would make most sense to me for the Parent Category to list the Article count of all the sub-articles in it.

    Also, not sure if this was intended to be done or not, but you can create sub-categories of sub-categories. However, they do not display as I would think they should. For example, and I know this is getting a bit detailed, but say I wanted to make a Parent Category called “Recipes”, then a sub-category of that called “A-E”, then a sub-category of that called “A”. I can do this in the admin panel and the fist sub-category shows as “-A-E” while the second will show as “–A”. But, all the sub sub-categories do not show listed under the sub-categories on the Knowledebase page, the sub sub-categories show the same as the sub-categories with no special heading and no icon (+) next to them. I am guessing that this would require another level of CSS to get this to show so that each sub-category would have a heading, icon (+) and number of articles. Just wondering if this is correct or not and how it should work.

    One more thing I have found:
    Im not sure whether this was done on purpose.
    I have to subcategories on one parent.
    Each category has one article. On the main Knowledgebase site I can see all three articles being displayed under the parent category. Opening the parent category I see two subcategories containing each of their articles. The parent one does not have anything, and all of the articles are displayed below once again.

    Here is what it looks like: https://i.imgur.com/VC6Steq.png

    I guess the subcategorized articles shouldnt be seen unless you open the parent one, and make the subcategories visible.

    Thank you

    Plugin Contributor Maeve Lander

    (@enigmaweb)

    Just to clarify… The plugin will allow you to create various levels of subcategory, but does not currently include any css to govern how these subcategories display. I’ve put “extend subcategory functionality & styling” on my long term ToDo list for future development. In the meantime, if you would like to use multiple levels of subcategory and know a little code, you could adjust your template files and css to style however you wish. See FAQs for more info (and hire a developer for a few hours if it’s beyond your level of code knowledge).

    Plugin Contributor macbookandrew

    (@macbookandrew)

    Found a workaround for this; take a look at this commit.

    Note that the line numbers at the end of the file do not match the plugin as I made some prior edits for some grammatical changes, and I did not indent the entire block of code between the if {} to avoid having a massive commit.

    Plugin Contributor Maeve Lander

    (@enigmaweb)

    Awesome, thanks heaps @macbookandrew.
    We’ll test and implement into the master branch ASAP. Thanks very much for your help. Really appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parent Article Count Not Showing Article Counts From Subcategories’ is closed to new replies.