This is the updated working code in stats-profile.php which together with code above in bp-custom.php (buddypress functions.php) gives me the title(s) of displayed user for multiple custom post types.
<?php
if ( is_user_logged_in() ):
query_posts(array(
'post_type' => array(
'post',
'portfolio',
'applicant',
'agency',
'employer'
),
'author' => bp_displayed_user_id(),
'showposts' => 3
) );
?>
<?php while (have_posts()) : the_post(); ?>
<h3><a href="https://wordpress.stackexchange.com/questions/107291/<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
<?php endwhile;
else :
echo "";
endif;
?>
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- Programmatically publish a post (custom post type) with custom fields
- Get list of registered custom post types
- Echo all meta keys of a custom-post TYPE
- Ordering Posts List By Taxonomy Terms?
- Change slug of registered custom post type in child theme
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Custom post type permalink changing itself every other change
- Newer/Older posts links display same posts on every page
- How to sort CPT by custom meta value (date), and return posts month by month
- WordPress Custom Shortcode Conflicting with Media Library
- Creating a gallery custom post type?
- Search results ordered by custom post types are not grouped
- When viewing single parent post, display list of children
- Featured image metabox not showing up
- Limit Authors to their Own Posts on front-end excluding admins
- How to redirect all pages of a custom post type [duplicate]
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Add information above a custom post type listing of all posts page
- Show custom field from custom taxanomy term on custom post type
- How do I sort a custom post type admin column using two meta keys?
- Making a Custom Post type only visible to non-users via a specific link
- Search doesn’t find tags or categories in custom post types
- Add custom post type archives to search results?
- CPT Meta Searching
- Taxonomy.php Not Showing Posts
- Rewrite URL for only archive page (custom post type)
- Custom search results page query, link permalink to post title while separating by post types
- Plugin translation not working apart from name and description
- Archive template for custom post type only lists first 10
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Add category attribute to custom shortcode
- single-{cpt}.php ignored
- How to customize a permalink (URL) structure?
- Disable block with taxonomies at post page
- Using Same Slug With Multiple Post Types
- Multiple featured sizes / images / excerpts
- PHP variable not regenerating when publishing multiple posts at the same time
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- Custom Post Types with a common category for a blog listing
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- Sort and filter custom post type posts by custom taxonomy
- Creating a Page Template to display all items from a Custom Post Type
- Use image gallery like woocommerce in custom post type
- Posts per row on archive page (custom post type)
- Filter widget outputs
- 2 Different Custom Post Types in Submenu
- How to assign classes to all elements?
- Search filter triggered & sort by custom post type
- Select event where start date is smaller than current date and end date is greater than current date
- Custom “radio button meta box” not saving correctly
- Get post_type by term_id
- How to keep a CPT from being visible on the front end?
- Custom Taxonomy Category link
- HowTo: Custom Post Type (Meta) to Custom Table
- How to have permalink like domain.com/term/postname?
- List Posts By Custom Taxonomy
- Archiving custom post content?
- How can I remove filters from custom post types?
- WP_Query order by two values
- copy images from custom field to another custom field
- Custom Query: If One Post Object Field Value Is The Same As Another
- Custom Columns for Custom Post Type Manager
- Group Custom post type in a taxonomy page by its child taxomony
- Custom taxonomy query showing more than 4 posts
- Loading multiple post content in FancyBox
- Building tags and archive using meta from custom post type
- jQuery UI & Admin (Calendar)
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- CPT loop doesn’t seem to account for post date?
- Display all Categories except ones with a specific parent
- have to do a while have post to show for two custom post types sharing the same taxonomy?
- How to handle this wordpress custom post type rewrite problem?
- Metabox collapsed by default
- using search filter ajax for custom field type post
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- relationship between custom post type?
- Attempting to get number of grandchildren of page in WP_Query loop
- Show specific posts with WP_Query using ACF Post object
- Custom post Query and WordPress Post Query Clash
- Meta_Query refuses to return results
- Add active class to foundation 6 tabs while looping categories
- Custom post types with child taxonomy not visible in admin
- Multiple Custom Post Type with different Taxonomies
- Filter By Term Not Working – Custom Post Type
- WordPress is giving a warning but my code is working fine
- Custom post type category archive URL redirects to home page
- Static front page has page url not site url
- How to add parameters for custom post type
- Why is my custom post type slider only displaying the latest slide?
- Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?
- using ACF datepicker to filter posts on a page
- query_post causes the posts to be loaded twice on load more posts
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
- Custom post type navigation – 404 on page 2
- No error in debug mode, wordpress template can not be loaded
- Custom Sort Order for Custom Post Type Taxonomy
- Load posts via AJAX without draft status