WordPress.org

Ready to get started?Download WordPress

Forums

loop for categories / links (2 posts)

  1. thomask
    Member
    Posted 7 years ago #

    is there any easy loop procedure for getting the categories and links?
    I need to show categories and links in special format, e.g.

    <li class="category-slug"><a href="category-address" title="category description"><strong>category name</strong></li>

    and this afaik cannot be done by standard category/link lists.
    So i need to run for each function for all categories (or links) in database, with some conditions. I can do it with standard php, but i wonder that there may be some standardised way

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Not really. Make a copy of the list_cats function and then modify the copy to do what you need it to do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags