Support » Fixing WordPress » Use category descriptions as links

  • Resolved tomasi514

    (@tomasi514)


    I am trying to use category descriptions as links with a wp_list_categories, can I do that ?
    Here is my code:

    <?php
    if (is_category()) {
    $cat = get_query_var('cat');
    wp_list_categories('orderby=id&use_desc_for_title=1&depth=1&hierarchical=1&style=0&hide_empty=0&child_of='.$cat);
    }
    ?>
Viewing 1 replies (of 1 total)
  • Thread Starter tomasi514

    (@tomasi514)

    no need anymore, I thought it was not possible to add different categories with same name, I now realize it is possible to change titles for same ones once the categories are created.
    I close this topic.

Viewing 1 replies (of 1 total)
  • The topic ‘Use category descriptions as links’ is closed to new replies.