Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: post type –> buddypress support

@shanebp

Moderator

providing archive of specific type post

Creating such a page is easy and well documented as a standard WP task.
The issue is that you want such a page for each user.
If you use the standard approach – how do you determine which user’s posts to display?
Creating a page or pages as I suggest above is the usual solution to that problem.
Simply use bp_displayed_user_id() as the value for the author parameter in WP_Query.

Or you could create profile tabs that work as links to a standard post archive page.
Those links could include the user_id as a $_GET var which you use as the value for the author parameter in the WP_Query instance on the archive page.
But those links would be in the form of
http://www.mysite.com/posttype1/?user=2

Skip to toolbar