[Resolved] Populating BP Profile Loop for author of a WP Post
I would like to use the
bp_has_profile()loop to run through the profile fields of authors on my WordPress single.php page.
I know it goes something like:
<?php if ( bp_has_profile( 'user_id=10' ) ) : ?> .....
But my issues is finding the right code to dynamically generate the user ID of the current WP post. I’ve tried using
<?php if ( bp_has_profile( get_the_author_meta( 'ID' ) ) ) : ?>but that doesn’t work.
Anyone have any ideas?
For others interested in customizing the profile loop, check out:
- The topic ‘[Resolved] Populating BP Profile Loop for author of a WP Post’ is closed to new replies.