WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] use div construct instead of list construct for categories? (3 posts)

  1. syncbox
    Member
    Posted 8 years ago #

    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

  2. cat
  3. 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>

  • syncbox
    Member
    Posted 8 years ago #

    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?

  • syncbox
    Member
    Posted 8 years ago #

    nevermind... I figured out a way to get what I want, though I had to build a static menu construct and just use cat=id links

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags