wp_list_categories() with img before and after
-
Hello all..
i want to add two images before and after any category in my category list in side bar.i found out that wp_list_categories() dosnt have before and after arg in wordpress 2.8 , so how can i do that?
i read a topic here and found this query :<?php
$categories = get_categories();
foreach ($categories as $cat) {
echo ‘- category_nicename.’/”><span>’.$cat->cat_name.'</span>
‘;
}
?>its good because of ability of using <span> so it can be replace with img
but the problem is that the link to the category seems not to work correctly ( it has problem with my permalink structre )
so what is your suggestion? can u give me a correct query? i spent our for this but found nothing ??
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wp_list_categories() with img before and after’ is closed to new replies.