Hi,
I'm making a business listing directory.
I created a custom taxonomy called [business_status] with 2 options 'Businesses For Sale' and 'Businesses Sold'.
I then created another custom taxonomy called [business_category]
that shows whether it's 'wholesale' or 'retail' etc.
I want to show [business_category] categories in a list but only those maked as 'Businesses For Sale' in [business_status].
To list the [business_category] I can simply use this:
<?php
$taxonomy = 'business_category';
$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 = '';
$args = array(
'taxonomy' => $taxonomy,
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title
);
?>
<ul>
<?php wp_list_categories( $args ); ?>
</ul>
But how do you limit this list to only show the businesses that are for sale?
I would appreciate any help. Thanks.