Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • schorsch2
    Participant

    @schorsch2

    Hi,
    I have had the same problem and now, I have found a solution which works with my theme: just declare the variable $data (or whatever name you give it) as static before calling bp_get_member_profile_data or bp_member_profile_data like this:

    	<?php	static $data = 'bla'; ?>	
    	<?php do_action( 'bp_directory_members_item' ); ?>
    
    	<?php
    	/***
    	* If you want to show specific profile fields here you can,
    	* but it'll add an extra query for each member in the loop
    	* (only one regardless of the number of fields you show):
    	*
    	* bp_member_profile_data( 'field=the field name' );
    	*/
    	$data = bp_get_member_profile_data( 'field=Taetigkeit' );
    	if( $data != '' )
    		echo $data;  
    	?>
Viewing 1 replies (of 1 total)
Skip to toolbar