Forums

Parent categories can't display posts which are in subcategories (2 posts)

  1. wildlily980
    Member
    Posted 1 year ago #

    Hello,Everyone.
    I have inserted some posts into wordpress mysql directly(not with admin pannel).
    The problem is,parent categories can't display posts which are in subcategories but I update a post or update a category in admin panel.
    For example:
    There is a parent category named "USA",and there is a child category named "Alabama",there is a post in the category "Alabama",it works fine when I browse "Alabama",but there is nothing when I browse "USA",
    And if I update a post on the admin panel,everything goes well.
    Can I skip the manually operation?
    Thanks for your time.
    I'll appeciate if any suggestions.
    Bill

  2. wildlily980
    Member
    Posted 1 year ago #

    I have to correct something:
    update a category can fix this problem although I change nothing,but update a post can't fix it.
    I have checked the data in mysql carefully,nothing is different between after and before I update a category.
    I have used wordpres API to insert posts and categories,but they couldn't fix this too.
    Sorry for my poor English,Thanks for any help.

Topic Closed

This topic has been closed to new replies.

About this Topic