bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Pulling profile data from wordpress

(2 posts)
  • Started 1 year ago by smurfdude
  • Latest reply from fel64
  • This topic is not resolved

No tags yet.

  1. Does anyone know of a way to include wordpress profile data (posts for example) into the bbpress profile page?

    Posted 1 year ago #
  2. Depending on if you've set up bbPress so that it's not only integrated but also uses WordPress's functions when available, I think you can just call the WP function. If it doesn't work, you need to make a database query along the lines of:

    global $bbdb;
    $profiledata = $bbdb->get_row( "SELECT meta_value FROM $bbdb->usermeta WHERE meta_key = $theprofiledetail AND user_id = $theuserid");

    Where $theuserid and $theprofiledetail are set to whatever you want. Note that $profiledata is worth examining by using print_r($profiledata); or the like, because its format can be confusing. The code might not work, but it's an idea.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.