Skip to:

Display User Profile Info In Custom Page Template

  • RobotBash


    Anyone know how to call the profile from the bbpress user profile to a custom page template? Tried a few pieces of code and searched this site but having no luck! Would appreciate any advice…

Viewing 1 replies (of 1 total)

  • niuserre


    I’m just a user but I think you need to create a new template in your theme (or child theme) directory called single-user.php

    If you have that then the user profile page will use that template.

    You can find an example of this template in /wp-content/plugins/bbpress/templates/default/extras

    To do this I would:

    1. Create a child theme of my current theme if I did not already have one.
    2. Create a sub-folder in there called bbpress.
    3. Copy the single-user.php file from /wp-content/plugins/bbpress/templates/default/extras into my new /themename/bbpress folder.
    4. Edit the file.

    This template also calls other parts from /wp-content/plugins/bbpress/templates/default/bpress which you might also want to modify, in which case you would also copy some other files across for editing. I think it calls content-single-user.php which then calls user-details.php etc.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar