I am displaying the area names using taxonomy in array format , each taxonomy have different area names and posts .When i click the area name it should pull out the all the posts from the all taxonomies , but my problem is area names are duplicating so i just want hide that duplicate area names .Can any one guide me to solve this .
Here is my Code :
<div id="footer">
<h1>Area Names </h1>
<?php
$taxonomyArray = array("health_area","schools_area","office_area","salonsandsaps_area");
for($Inc=0;$Inc<count($taxonomyArray);$Inc++){
$orderby = 'name';
$show_count = 0; // 1 for yes, 0 for no
$pad_counts = 0; // 1 for yes, 0 for no
$hierarchical = 1; // 1 for yes, 0 for no
$title = '';
$empty = 0;
$args = array(
'taxonomy' => $taxonomyArray[$Inc],
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title,
'hide_empty' => $empty
);
wp_list_categories( $args );
}
?>
</ul>
</div>
Here is Screenshot of result
Thanks in Advance .
Screenshot of result after updating code :