Support » Fixing WordPress » use div construct instead of list construct for categories?

  • Resolved syncbox

    (@syncbox)


    Is there a way to get the list_cats to use a div structure rather than a list structure? For example:

      <?php list_cats(); ?>

    is the normal construct… but is there some code or tag to have:

    <div>
    <?php list_cats(); ?>
    </div>

    where it DOESN’T add

  • cat
  • as it loops through?

    Ideally, I’d like to use sub-categories, too. (child categories)

    My goal is to generate a “tree-menu” structure like that of projectseven.com’s TMM (Tree Menu Magic).

    Alternatively, if it is not possible to generate this as a dynamic menu of all categories, what would go inside the link in a static menu construct to call the appropriate posts for any one category?

    is this correct?:

    <div>Name of Category</div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Gosh, is this just not possible or has NO ONE done it? Where does one edit how

  • is wrapped around categorys when using list_cat (etc)

    Is it possible to use a div tag instead?