Support

Account

Home Forums General Issues Turn tags filterable Reply To: Turn tags filterable

  • But you have the filtering working?

    As far as the repeating tags, do you mean this part of your code is?

    
    <ul id="filters" class="filter-menu">
            <?php while ( $postlist->have_posts() ) : $postlist->the_post(); ?>
                    <?php $posttags = get_the_tags();
                            echo '<li><a href="#" class="active" data-filter="*">Alles</a></li>';
                            if ($posttags) {
                                    foreach($posttags as $tag) {
                                            echo '<li><a href="#" data-filter="' . '.' . $tag->name . '">' . $tag->name . '</a></li>';
                                    }
                            }
                            ?>
                    <?php endwhile; ?>
            </ul>