Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How to display user profile info inside wordpress author.php file

@ryan360

Participant

I was able to accomplish this by writing a custom query. I was unable to find a solution ANYWHERE else on this forum despite numerous people asking the same question so I’m hoping this will help everyone out until the bbpress team fixes the bbp_get_template_part functions.

		<?php
    
                $args = array(
                   'post_type' => 'reply',
                   'post_status' => 'publish',
                   'orderby' => 'title',
                   'order' => 'ASC',
                   'author' => $curauth->ID,
                );
                $bbpressquery = new WP_Query($args);
                while ($bbpressquery->have_posts()) : $bbpressquery->the_post();
            ?>
                
                	<?php the_content(); ?>
                	
          	 <?php endwhile; ?>   

Obviously you can modify the code above to show topics created, I was just trying to return all the forum posts created by a user.

Skip to toolbar