[Plugin: BP Posts On Profile] Support for custom post types, please!
-
This seems to be a nifty little plugin and I’m looking forward to use it extensively.
Can you tell me how to include custom post types in the listing? Specifically, which part of this code needs to be edited?
function bp_postsonprofile_setup_nav() { global $bp, $wpdb; $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : bp_loggedin_user_id(); $where = $wpdb->prepare('WHERE post_author = %d AND post_type = %s AND post_status=%s', $user_id, 'post', 'publish'); $post_count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" );
Or is it something else? ??
Cheers!
EDIT: Similar question here:
https://buddypress.org/community/groups/creating-extending/forum/topic/custom-posts-on-profile/https://www.ads-software.com/extend/plugins/bp-posts-on-profile/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: BP Posts On Profile] Support for custom post types, please!’ is closed to new replies.