From: Laury GvR Date: Wed, 3 Jun 2015 20:12:44 +0000 (-0400) Subject: Display recipe categories if on recipes page. attempt 5 X-Git-Tag: v1.0.0~40 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6ca3ecd13bc77897958cd2a7469ffa8501531049;p=WP-Themes%2FToskiSands.git Display recipe categories if on recipes page. attempt 5 --- diff --git a/page.php b/page.php index f4554fe..09fdccc 100644 --- a/page.php +++ b/page.php @@ -9,31 +9,26 @@
- - $orderby, - 'show_count' => $show_count, - 'pad_counts' => $pad_counts, - 'hierarchical' => $hierarchical, - 'taxonomy' => $taxonomy, - 'title_li' => $title - ); - ?> -
    - -
- + if(count($customPostTaxonomies) > 0) + { + foreach($customPostTaxonomies as $tax) + { + $args = array( + 'orderby' => 'name', + 'show_count' => 0, + 'pad_counts' => 0, + 'hierarchical' => 1, + 'taxonomy' => $tax, + 'title_li' => '' + ); + + wp_list_categories( $args ); + } + } + } else { ?>