Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get all used tags get_terms(‘bbpress_tag?’)

  • @mvaneijgen

    Participant

    I use the following code on a webshop to display all tags being used on the website in the custom post type product

    <?php
      $terms = get_terms( 'product_tag' );
    
      if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
        foreach ( $terms as $term ) {
          print '<option data-filter="tag-'.$term->slug.'"value="tag-'.$term->slug.'">'.$term->name.'</option>';
        }
      } ?>

    How do I find the equivalent for bbPress to `product_tag

  • You must be logged in to reply to this topic.
Skip to toolbar