• Resolved Storyman

    (@storyman)


    Below is the code I’m using to disply the child categories of category ID #8. Problem is that a post must be opened in the editor and resaved before it will appear in the category list. The post appears in the main content area without a problem.

    I don’t know if this has anything to do with the problem, but each post has its own category.

    This code displays only the children of category and does not display the parent category–which is want I want.

      <?php wp_list_categories (‘child_of=8&title_li=&orderby=name’);
      ?>

    I’ve changed the order of the options, but nothing makes a difference.

    WordPress version: 2.3

Viewing 2 replies - 1 through 2 (of 2 total)
  • Regarding your first question, are the posts you are having to edit/save ‘before it will appear in a category list’ future posts (i.e. used a future timestamp when you originally posted)? If so Trac Ticket 4913 reports the problem but there is no fix yet.

    If you want the parent of category 8 you’ll have to use something like get_category_parents().

    Thread Starter Storyman

    (@storyman)

    MichaelH,

    You are right. The post in question are future timestamped.

    I’ll have to check out get_category_parents(). The code posted does work–sans the timestamp issue.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category list not updating’ is closed to new replies.