FREQ list_cats improvements/flexibility (2 posts)

  1. infinull
    Posted 9 years ago #

    list_cats (and the corresponding wp_list_cats) is to restrictive.

    I want to be able to return the results as an array that can be traversed recursively or with a loop, depending on how the categories are set up and what theme is used.

    It would also be nice to set the ul/li handling to work with h# and p instead.

    This comes mainly after needing to get random subcategories for a sidebar. (see chsquotebook.com/0607/, may be moved to just chsquotebook.com in the coming week)

    I'm willing to write code for this, but don't know where to put it/what the interface should be.
    do we need a whole new function?
    turn it into a class?
    whats the best approach?

    Thank you,

  2. Chris_K
    Posted 9 years ago #

    I'd suggest looking at doing it as a plugin: Writing_a_Plugin

Topic Closed

This topic has been closed to new replies.

About this Topic