/** * Echo the user's ID */ function bp_portfolio_user_id() { echo bp_portfolio_get_user_id(); }
<div class="item-project"> <div class="item-project-pictures"> <img src="<?php bp_portfolio_item_thumbnail('portfolio-thumb'); ?> " width="250px" height="170px" /> </div> <div class="item-project-content"> <h3> <?php bp_portfolio_item_title(); ?> <div class="item-project-content-avatar"> <a href="<?php echo bp_core_get_user_domain(bp_portfolio_get_user_id()); ?> "><?php bp_portfolio_user_avatar(); ?> </a> </div> </h3> <span><a href="<?php bp_portfolio_item_url(); ?> "><?php bp_portfolio_item_url(); ?> </a></span> <p><?php