• Resolved jabdo

    (@jabdo)


    I’m trying to fix a possible bug that I found. I noticed on the front page, if you have both articles where the main category is the root, and articles with subcategories, it will only show the subcategories and not the articles. This is true of all the category pages.

    The “Browse all” button shows the correct number of articles (the number of leaves), but the leaf articles cannot be accessed when there is a node with children (the subcategories) with the same parent.

    If anyone has any fixes for this bug, I would be much obliged.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jabdo

    (@jabdo)

    I was going to write up the solution here, but honestly I don’t want to do it twice, so here is the solution on WordPress.StackExchange, formatted nicely.

    http://wordpress.stackexchange.com/a/154223/49581

    As it mentions, this doesn’t adhere to the posts_per_category. Also, there may be a more elegant solution for the category_parent file, but I’m not familiar enough with PHP and WordPress to figure it out right now.

    Thread Starter jabdo

    (@jabdo)

    One last thing, apparently you can really only have one level of Subcategories, because the second page doesn’t really display subcategories at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible Bug: Displaying Leaves and Sub-Categories’ is closed to new replies.