WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_categories() and ''walker'' class (1 post)

  1. giorgoskon
    Member
    Posted 2 years ago #

    Hello,,

    One of my widget's is using the wp_list_categories() function.
    The code:

    <ul>
    <?php			    wp_list_categories( "title_li=&orderby=name&hierarchical={$show_hierarchy}&show_count={$show_post_counts}&use_desc_for_title=0&child_of=".$category_id ); ?>
    			</ul>

    Everything works OK but the link target has the following form :
    http://www.example.com/category/shops/specific-city-shops/

    I want to change that to:
    http://www.examples.com/shops/?cat=15

    specific-city-shops is a subcategory with the shops category as a parent, and with id=15

    Any idea of how I can do that ? through the ''walker'' class? but I don't know how to use that..

    Thank you for your time.
    George

Topic Closed

This topic has been closed to new replies.

About this Topic