Support » Plugin: Custom Content Shortcode » BP Displayed User ID Posts

  • Resolved graemeconradie

    (@graemeconradie)


    If I am looking at a BuddyPress user profile, and want to display the list of posts for this BP user, how do I get the ID inside the loop ?

    bp_displayed_user_id

    Thank you for this.. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to pass the ID to the loop with the pass shortcode. Take a look at the pass reference under Settings > Custom Content.

    Thank you very much @peterpolow. What I’ve actually done is use the Load File function – [load file=includes/user-homes.php], then used < ?php echo bp_displayed_user_id(); ? >, this way I can keep it simple, keep the includes structured, and organised. So much you can do with this 🙂 !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BP Displayed User ID Posts’ is closed to new replies.