Posts Showcase – filter by custom taxonomy
-
Topic
-
Hi, I am using a custom post type on the showcase with filtered masonary but there is no where to enter in a custom taxonomy name. So I was getting no filter showing.
I have have made a couple of changes to the framework in order to get my taxonomy filter to work but this is not really how I would like to do it.
How can I correctly pass my custom taxonomy name through to the filter nav.
Thanks
loop.php – added in my $tax parameter “topic”if ( $args['display'] == 'filter' || $args['display'] == 'masonry_filter' ) { themeblvd_filter_nav($posts, 'topic',$args['filter']); }
parts.php – changed the start of data-filter from data-filter=”.filter- to data-filter=”.’.$tax.’-
foreach ( $terms as $key => $value ) { $output .= sprintf('
- %2$s
', esc_attr($key), esc_html($value)); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.