Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Angelo Rocha
    Participant

    @angelorocha

    Good, i’m changing the names of the plugins.
    The question is about BuddyPress.
    Sorry again.


    Angelo Rocha
    Participant

    @angelorocha

    Sorry! Is buddyPress.
    Thanks, your reply help me.


    Angelo Rocha
    Participant

    @angelorocha

    Works fine with a little change:

    function omni_filter_activity( $retval ) {
        $retval['action'] = 'bbp_reply_create,bbp_topic_create'; // change scope per action
        return $retval;
    } add_filter( 'bp_after_has_activities_parse_args', 'omni_filter_activity' );

    Angelo Rocha
    Participant

    @angelorocha

    Hi Henry Wright.
    I pasted in functions.php
    =/
    This is my custom loop:

    
    <?php do_action( 'bp_before_activity_loop' ); ?>
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    	<noscript>
    		<div class="pagination">
    			<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    			<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    		</div>
    	</noscript>
    	<?php if ( empty( $_POST['page'] ) ) : ?>
    		<ul id="activity-stream" class="activity-list item-list">
    	<?php endif; ?>
    
    	<?php while ( bp_activities() ) : bp_the_activity(); ?>
    		<?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
    	<?php endwhile; ?>
    
    	<?php if ( bp_activity_has_more_items() ) : ?>
    		<li class="load-more">
    			<a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
    		</li>
    	<?php endif; ?>
    
    	<?php if ( empty( $_POST['page'] ) ) : ?>
    		</ul>
    	<?php endif; ?>
    <?php else : ?>
    	<div id="message" class="info">
    		<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    	</div>
    <?php endif; ?>
    <?php do_action( 'bp_after_activity_loop' ); ?>
    <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    	<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    </form>
    

    Angelo Rocha
    Participant

    @angelorocha

    Hi shanebp.
    Not work for me, how to add the filter here:

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) :

    Thanks.


    Angelo Rocha
    Participant

    @angelorocha

    Hi danbp.
    The objective is display in a custom loop of activities only forum threads.


    Angelo Rocha
    Participant

    @angelorocha

    Any idea?
    =/


    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 =/

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar