Performance between loop and all conditional profile fields export
Is it bad coding to export all profile fields by a conditional tag instead of the default profile loop ?
Something like this..
<?php if ( $data = bp_get_profile_field_data( 'field=Country ' ) ) : ?> <div class="profile_fields"> Country: <span><a href="..../?s=<?php echo $data ?>" title="<?php echo $data ?>"> <?php echo $data ?></a></span> </div> <?php endif ?>
This would give me ultimate control about the CSS and layout front-end of each field but how bad is it for performance of the site ?
You must be logged in to reply to this topic.