Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Category

Viewing 3 replies - 1 through 3 (of 3 total)

  • sharmavishal
    Participant

    @sharmavishal

    imaths bp group taxo plugin


    Angelo Rocha
    Participant

    @angelorocha

    Is possible create a loop to display only groups with certain terms?
    I try:

    
    $args = array(
        'posts_per_page' => '-1',
        'tax_query' => array(
            array(
                'taxonomy' => 'bp_group_tags',
                'field'    => 'slug',
                'terms'    => '3d',
            ),
        ),
    $query = new WP_Query($args);
    ?>
    <?php if( $query -> have_posts() ): ?>
        <?php while ($query -> have_posts() ) : $query -> the_post(); ?>
            
            <?php bp_group_name() ?>
    
        <?php endwhile; ?>
        <?php wp_reset_postdata(); ?>
    <?php endif; ?>
    

    Not success =/


    Angelo Rocha
    Participant

    @angelorocha

    Any idea?
    =/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Group Category’ is closed to new replies.
Skip to toolbar