• Hey all,

    I’m struggling to accomplish my goal using the get_category_index function.

    I have my site set up using a category-sub-sub structure. For example, my main top level category is “book”, the child categories of “book” are “section 1”, “section 2”, etc. Each “section” child category has it’s own children of “chapter 1”, “chapter 2”, etc.

    The “book” category has a single post. The “chapter” categories each have posts. The “section” categories do NOT have posts.

    When I try accessing the site with this string: ?json=get_category_index&parent=2 (2 is the specific book category I’d like to retrieve) I don’t retrieve any results because all the section categories are empty.

    How can I get the get_category_index function to return empty categories?

    The site can be found at: here

    https://wordpress.org/plugins/json-api/

  • The topic ‘get_category_index & empty categories’ is closed to new replies.