[buddypress-dev] modifications to bp-xprofile-templatetags.php

David J. Bisset dbisset at dimensionmedia.com
Wed May 28 04:04:05 GMT 2008


I am trying to place specific information in specific places on my  
template, but I didn't see an easy way to do it in the files. Example:

<?php if ( group_has_fields() ) : ?>
<?php while ( profile_fields() ) : the_profile_field(); ?>
<?php if ( the_profile_field_name(true) == "Zip Code" ) : ?>
<?php $zipCode = the_profile_field_value(true); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>

I'm realizing now that this probably isn't the best way, so perhaps  
you can show me the alternate?

David Bisset
Director of Web Development
Dimension Media, Inc.

More information about the buddypress-dev mailing list