Display BuddyPress Profile Fields Anywhere

If you want to echo BuddyPress’s extended profile fields outside the loop, you need to add the $bp->loggedin_user->id parameter.

Here’s the code using a Genesis hook (substitute a hook for your theme):

function show_extra_profile_fields() {
global $bp;
$myfield = xprofile_get_field_data( 'Field Name', $bp->loggedin_user->id );
echo $myfield;
}
add_action( 'genesis_before_loop', 'show_extra_profile_fields' );

Add html tags to the echo statement and you’re in business.

Blessings.

Iframes in WordPress Without a Plugin

You can use iframes in WordPress without a plugin. Just use standard html markup. For example:

<iframe width="560" height="349" src="http://www.youtube.com/embed/PD6eQY7yCfw" frameborder="0" allowfullscreen></iframe>

Here’s the result: The “Dude Perfect” Guys

Panning and Zooming Slideshows without Flash

CrossSlide is a great jQuery plugin that adds a Ken Burns Effect (panning and zooming) to slideshows without Flash, ready for viewing on an iPad. Implementation in WordPress is a bit tricky because of a potential confict with WordPress’s dynamic image handling. Yet with a bit of CSS magic, we can pull it off. Check it out:

Loading…

Switch to our mobile site