Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'display users posts'

Viewing 25 results - 101 through 125 (of 287 total)
  • Author
    Search Results
  • #176092
    bullfrogco
    Participant

    Hello,

    I’d like to add a “My Profile” link to the buddypress main nav that allows users to link directly to their user profile.

    We’re running BP 1.9 and WP 3.7.1

    I’ve read through several posts here that got me 90% of the way there — I can get a link to appear in the “profile” nav but not in the main nav that you see if you’re looking at the group page. You know, the nav that lists Home, Forum, Members …

    I have added the following to bp-custom.php …


    <?php
    add_action('bp_setup_nav', 'add_myprofile_to_main_nav', 999 );
    function add_myprofile_to_main_nav() {
    global $bp;
    bp_core_new_nav_item(
    array(
    'name' => 'My Profile',
    'slug' => $bp->loggedin_user->domain,
    'position' => 50,
    'show_for_displayed_user' => false,
    ));
    }
    ?>

    What do I need to do differently to get it to appear in the main nav for the groups pages instead of the profile nav? Should I be taking a totally different approach?

    #175885
    Shmoo
    Participant

    Better customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.

    Should be nummer 1.

    And I don’t even want lots of new features to the activity stream but first just an easy way to customize the default lay-out would be so much pleasant!

    All BP pages are very easy to customize, move code around to give the page an unique feeling but when it comes to the activity stream the code is very fixed.

    There are about 50-75 Premium BuddyPress themes online for sale and 99% of them have the same activity stream page-layout. While all those premium theme developers can do lots of customization to all other pages the activity stream is like Twitter’s Bootstrap to BuddyPress it always tells you it’s a BuddyPress website without looking at the code.

    #175852
    sbmdesigns
    Participant

    This may be outside of the scope of buddypress, but I thought I’d ask anyways… Here is my setup..

    I have a CPT labeled ‘Artist’ that is connected to another CPT labeled ‘Song’ via P2P.

    What I am trying to accomplish is to have the ‘Artist’ CPT behave like a user and allow users to follow individual ‘Artists’. Then, Whenever a user follows an ‘Artist’ and a ‘Song’ CPT is posted, it will show in the activity stream as “%Artist% released a new song, %Song%”.

    I currently have the “Songs” being displayed in the activity stream but it is based on the author/user that posted it. (“%User% posted a new song, %Song%”).

    #174517
    Martyn_
    Participant

    * Better customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.

    * A way to select which filters and views are available in activity/, and persistently set the default activity feed view (from the admin panel)

    * live activity updates

    * A reply by PM hook into bbpress

    * Better options for users to self delete

    * Improved management/rethink of the tabs on profile pages (because this rapidly piles up as you add in plugins) : “Activity Profile Messages Friends Following Followers Location Groups Blog Forums Events Gallery Settings Links” Is not viable for a one line menu bar – this is maybe a display issue, but…!

    * be able to pass a function to the members loop, thats called to determine the display order (e.g. so I can easily order by City or age or any xprofile field)

    Maybe these are already there, but these are the things that are bugging me as a non-expert dev right now…

    #173830
    Sergio De Falco
    Participant

    Thanks Paul, I made it :), it’s something really rough, but if somebody needs it here it is:

    <?php
    
    // parametri del database
    $db_host = "localhost";         //Your database host
    $db_user = "database";          //Your database username
    $db_password = "password";      //Your database password
    $db_name = "database_01";       //Your database name
    
    $db = mysql_connect($db_host, $db_user, $db_password);
    set_time_limit(0);
    
    if ($db == FALSE)
    die ("Connection Error.");
    
    mysql_select_db($db_name, $db)
    or die ("Database Error.");
    
    $n = 0;
    $query = "SELECT * FROM <code>wp_posts</code> WHERE post_type = 'topic' OR post_type = 'reply' ORDER BY post_date ASC";
    
    $result = mysql_query($query, $db);
    
    while ($row = mysql_fetch_array($result))
    
    	{
    		unset($user_id);
    		unset($reg);
    		unset($guid);
    		unset($id);
    		unset($post_parent);
    		unset($post_date);
    		unset($nicename);
    		unset($displayname);
    		unset($title);
    		unset($forum);
    		unset($forumurl);
    		unset($post_type);
    		unset($forum_id);
    		unset($acttype);
    	
    		$user_id = $row['post_author'];
    		$guid = $row['guid'];
    		$reg = $row['user_registered'];
    		$id = $row['ID'];
    		$post_parent = $row['post_parent'];
    		$post_date = $row['post_date'];
    		$title = $row['post_title'];
    		$content = $row['post_content'];
    		$post_type = $row['post_type'];
    		$forum_id = $post_parent;
    		
    		$q1 = "SELECT * FROM <code>wp_users</code> WHERE ID = '$user_id'";
    		$r1 = mysql_query($q1, $db);
    		$e1 = mysql_fetch_array($r1);
    		
    		$nicename = $e1['user_nicename'];
    		$displayname = $e1['display_name'];
    		
    		if ( $post_type == 'reply' ) {
    			$q1 = "SELECT * FROM <code>wp_posts</code> WHERE ID = '$post_parent'";
    			$r1 = mysql_query($q1, $db);
    			$e1 = mysql_fetch_array($r1);
    			
    			$post_parent = $e1['post_parent'];
    			$title = $e1['post_title'];
    			$guid = $e1['guid'];
    		}
    		
    		$q1 = "SELECT * FROM <code>wp_posts</code> WHERE ID = '$forum_id'";
    		$r1 = mysql_query($q1, $db);
    		$e1 = mysql_fetch_array($r1);
    		
    		$forum = $e1['post_title'];
    		$forumurl = $e1['guid'];
    
    		if ( $post_type == 'topic' ) {
    			$action = mysql_real_escape_string('<a href="http://www.yoursite.com/users/' . $nicename . '/" rel="nofollow">' . $displayname . '</a> ha iniziato la discussione <a href="' . $guid . '">' . $title . '</a> nel forum <a href="' . $forumurl . '">' . $forum . '</a>');
    			$acttype = 'bbp_topic_create';
    		} else {
    			$action = mysql_real_escape_string('<a href="http://www.yoursite.com/users/' . $nicename . '/" rel="nofollow">' . $displayname . '</a> ha risposto alla discussione <a href="' . $guid . '">' . $title . '</a> nel forum <a href="' . $forumurl . '">' . $forum . '</a>');
    			$acttype = 'bbp_reply_create';
    		}
    		
    		$content = mysql_real_escape_string( $content );
    
    		if ( $user_id > 0 ) {
    			$q1 = "SELECT COUNT(umeta_id) AS conto FROM <code>wp_usermeta</code> WHERE user_id = '$user_id' AND meta_key = 'last_activity'";
    			$r1 = mysql_query($q1, $db);
    			$e1 = mysql_fetch_array($r1);
    			
    			if ( $e1['conto'] > 0 ) {
    				$q = "UPDATE wp_usermeta SET meta_value = '$post_date' WHERE user_id = '$user_id' AND meta_key = 'last_activity'";
    				mysql_query($q, $db);
    			} else {
    				$q = "INSERT INTO <code>wp_usermeta</code> (<code>umeta_id</code>, <code>user_id</code>, <code>meta_key</code>, <code>meta_value</code> ) VALUES ( NULL, '$user_id', 'last_activity', '$post_date' );";
    				mysql_query($q, $db);
    			}
    		}
    		
    		$q = "INSERT INTO <code>wp_bp_activity</code> (<code>id</code>, <code>user_id</code>, <code>component</code>, <code>type</code>, <code>action</code>, <code>content</code>, <code>primary_link</code>, <code>item_id</code>, <code>secondary_item_id</code>, <code>date_recorded</code>, <code>hide_sitewide</code>, <code>mptt_left</code>, <code>mptt_right</code>, <code>is_spam</code> ) VALUES ";
    		$q .= "(NULL, '$user_id', 'bbpress', '$acttype', '$action', '$content', '$guid', '$id', '$post_parent', '$post_date', '0', '0', '0', '0')";
    		mysql_query($q, $db);
    
                    $n++;
    	}
    
    mysql_close($db);
    
    echo "Done! inserted $n activity entries";
    ?>
    

    The action is in italian, you can modify as you want

    #172257
    lucamoretto
    Participant

    Hi guys is the same if i wannainsert a list of all products uploaded by author in my site woocommerce + buddypress. Every users (subscriber) can upload a new products, I wanna display in the user buddypress profile a list with a link of all products published by author. Is Possible? Can help me to solve this problem? Ty in advance!

    #169775
    JosiahW
    Participant

    For some reason the fancy editor is not displaying for me (the admin) or my users in bbpress. Also I would like to give my users the ability to use fancy editor in their posts on the activity stream.

    Yes I have “Use the fancy WordPress editor to create and edit topics and replies” selected.
    Could it be an issue with my using Ultimate TinyMCE?

    joanicegreen
    Participant

    Redirects are leading to a blank page (header and sidebar’s are there but the actual activity is not displayed)

    During an email notification of an activity, the link provided in the email is:
    http://www.itsartmag.com/features/activity-2/p/1234

    When you click the link it goes to
    http://www.itsartmag.com/features/members-2/user/activity/1234/

    When it gets to this page the page is blank, it will have the header and sidebar and content space, but nothing appears in the content space.

    An example of this is as follows:

    The email gives this link:

    http://www.itsartmag.com/features/activity-2/p/816/

    The site redirects you to:
    http://www.itsartmag.com/features/members-2/cgartist/activity/816/

    And the activity entry does not show at all

    Is there a way to have the link redirect to just the activity page or how is this handled in the core

    We have tried to update the .htaccess but the redirect is actually pretty ugly.

    This is similar to the following posts (opened over a year ago, so I am just referencing them, since I am not sure if it was ever resolved)

    http://buddypress.org/support/topic/why-does-buddypress-use-redirection-links-in-activities/

    http://buddypress.org/support/topic/view-single-activity-infinite-redirect/

    http://buddypress.org/support/topic/buddypress-activity-stream-permalinks/

    1. Which version of WordPress are you running? Version 3.5.2

    2. Did you install WordPress as a directory or subdomain install?
    It is installed on the following path from the web root:
    features/itsart

    3. If a directory install, is it in root or in a subdirectory?
    It is in a subdirectory:

    httpdocs/features/itsart

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    Not recently

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes

    6. Which version of BP are you running?
    1.7.2

    7. Did you upgraded from a previous version of BP? If so, from which version?
    No

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes:

    AddThis Follow Widget
    AddThis Social Bookmarking Widget
    AdRotate Professional
    Akismet
    BP Activity Autoloader
    BP Friends Suggestions Widget
    BP Group Organizer
    BP Members With Uploaded Avatars Widget
    BP reshare
    BP Resume Page
    BuddyMenu
    BuddyPress
    BuddyPress AddThis LS
    BuddyPress Follow
    BuddyPress Live Notification
    BuddyPress login redirect
    BuddyPress Media
    Buddypress Sitewide activity widget
    BuddyPress Template Pack
    Chartbeat
    Clean up wp_head
    Clobber spam users
    Community Activity On profile
    Conditional Widgets
    Contact Form 7
    Core Control
    Disqus Comment System
    DRP WordPress User Management
    DZS Video Gallery
    Events +
    Export Users to CSV
    Facebook Friends Inviter
    Facebook Like Activity Stream For BuddyPress
    Google Analytics for WordPress
    If Menu
    iframe
    Jetpack by WordPress.com
    JW Player 6 Plugin for WordPress
    Login Logo
    Magic Members
    Manual Control for Jetpack
    Newsletters
    Prevent Password Reset
    PunchTab for WordPress
    Really Simple CAPTCHA
    Slide-In
    Social Articles
    SSH SFTP Updater Support
    TS Widget Pack
    Use Google Libraries
    Video SEO for WordPress SEO by Yoast
    Viper’s Video Quicktags
    Welcome Pack
    White Label CMS
    Widgetize pages Light
    WordPress SEO
    WP-Memory-Usage
    WP Hide Dashboard
    WPMU DEV Dashboard
    WP Status Notifier
    WPtouch Pro

    9. Are you using the standard BuddyPress themes or customized themes?

    Customized theme wpzoom’s magazinium with buddypress template pack installed

    10. Have you modified the core files in any way?
    No

    11. Do you have any custom functions in bp-custom.php?
    No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    Not Running

    13. Please provide a list of any errors in your server’s log files.
    None that I can see in relation to this, no 404’s etc

    14. Which company provides your hosting?
    Self Hosted

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    LAMP

    Dainismichel
    Participant

    i think i remember what i did a few years back — i forced users to jump out to the posts themselves to make comments. i think i did this by just not displaying the comment buttons in the activity stream … something like that.

    Pin
    Participant

    It’s simply annoying when there’s a big community and the activity stream is crowded only with X joined… W and Y became friends, or Z changed his profile picture. Every status update, important posts etc are basically flushed away. Personally I use the BP in a more Facebook like way where people have the eyes only on the Activity page, aka Wall. 90% of users are lazy or just don’t know / don’t want to know that using the filter will help sorting and they just complain “hey do something about! All I see is just crap”. And before anyone saying “use the search”, I did, for days… nothing actually working. So… had to figure it out…

    First of all, using
    <?php if ( bp_has_activities( 'object=status') ) : ?>
    as the documentation suggests, doesn’t work at all, nothing is changed.

    I managed to get the activity sorted out using
    <?php if ( bp_has_activities('action=activity_update' ) ) : ?>
    on my theme’s activity-loop.php and the “wall” is way more clean now BUT 2 more annoying bugs occurred:
    1. I don’t know if it’s a bug or theme/script related, but when I press Load more, the same content is loaded over and over again.
    2. ALL MEMBERS, MY FRIENDS, MY GROUPS, MY FAVORITES, MENTIONS will display the same content and of course, Load more will load the same content.

    This is my activity-loop.php: http://pastebin.com/GtuwNQW1
    It’s exactly like the BP’s default theme, changed only <?php if ( bp_has_activities('action=activity_update' ) ) : ?>
    Tried others ways, nothing seems to work getting a working filter only for updates loading all the content properly.

    Anyone have a suggestion or a possible solution with some custom code for this issue?
    Using WP 3.5.1 and BP 1.7.1

    Also, @djpaul for the next release of BP, having an option to set the default type of activity to be shown it’s a must in my opinion, 🙂 or even on option to block some type of activity to be registered into database, saving some space, load and erasing some dull content to be displayed (was a plugin but it’s 2 years old and it’s not working)

    Cheers!

    #161676
    azchipka
    Participant

    Sorry there was an error in the above code, that results in a no results dialog error for users who have no posts. You can download a bundled plugin by clicking here.

    if ( !function_exists( 'add_action' ) ) {
    	echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
    	exit;
    }
    define('TCH_PostsOnProfilesVersion', '0.1');
    define('TCH_PostsOnProfilesVersion_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    
    add_action( 'bp_setup_nav', 'add_profileposts_tab', 100 );
    function add_profileposts_tab() {
    global $bp;
    bp_core_new_nav_item( array(
    'name' => 'My Posts',
    'slug' => 'posts',
    'screen_function' => 'bp_postsonprofile',
    'default_subnav_slug' => 'My Posts', 
    'position' => 25
    )
    );
    // show feedback when 'Posts' tab is clicked
    function bp_postsonprofile() {
    add_action( 'bp_template_content', 'profile_screen_posts_show' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function profile_screen_posts_show() {
    $theuser = bp_displayed_user_id(); 
    query_posts("author=$theuser" );
    if ( have_posts() ) :
    get_template_part( 'loop', 'archive' );
    else: ?>
    
    		
    
    	    
    #161657
    azchipka
    Participant

    OK went through the plugin and updated the code to function in current versions of buddy press, its a bit sloppy but it does work. Just place the below code in your bp-custom.php file and it will add a new tab to each users profile that displays the blog posts they have written. Display is based off of your archive.php file so it matches the theme.

    //POSTS ON PROFILE STARTS HERE
    add_action( 'bp_setup_nav', 'add_profileposts_tab', 100 );
    function add_profileposts_tab() {
    global $bp;
    bp_core_new_nav_item( array(
    'name' => 'My Posts',
    'slug' => 'posts',
    'screen_function' => 'bp_postsonprofile',
    'default_subnav_slug' => 'My Posts', 
    'position' => 25
    )
    );
    // show feedback when 'Posts' tab is clicked
    function bp_postsonprofile() {
    add_action( 'bp_template_content', 'profile_screen_posts_show' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function profile_screen_posts_show() {
    $theuser = bp_displayed_user_id(); 
    query_posts("author=$theuser" );
    get_template_part( 'loop', 'archive' ); //call your archive template
    
    }
    
    }
    
    //POSTS ON PROFILE ENDS HERE
    #160190
    danbpfr
    Participant

    @funmi-omoba,

    please open a new tread, this one is 3 years old, and give some details about your config (version, theme name) and what you want to do.

    @opencode, thank you for sharing, but updating such old posts hasn’t much effect for most users. Also give some indication about BP version where your code will work on.

    #158661
    lradden
    Participant

    WP 3.3

    BP 1.5.1

    Hi – The site I inherited is no longer displaying the content of its users’ posts (or lessons). Help!

    Example:

    http://tah.newton.k12.ma.us/lessons/the-trials-of-theodore-roosevelt-and-woodrow-wilson/

    #158504
    @mercime
    Participant

    @udgang99 “create a new field in the members profile, where all the POSTS they have contributed with to the site, are displayed” plus post from the front-end

    Introducing BuddyBlog: Allow Users to blog from their BuddyPress Profile

    #157424
    beeeerock
    Participant

    Having looked through plug-ins for the solution, with no joy so far, I’m going to put my want list into this ‘Ideas’ forum. Maybe the method is out there and someone can point me at it… and if not, maybe it will germinate into something I can use eventually.

    What I’d like to do is roll P2 Theme into BuddyPress so that I can do a bunch of things that are essentially ‘project management’. Some wish list items in no particular order:

    – utilize the easy front posting P2 Theme to make the site easy to use. Not interested in doing project management stuff behind the scenes, in the dashboard area (which seems to be a common thing in the plug-ins I tried out).
    – utilize the groups function in BP to separate users into logical groups – say, ‘design’, ‘administration’, ‘accounting’.
    – allow site admin user to add members to groups – so far you have to ‘friend’ the person etc in BP (or so it appears to me!)… too complicated for the end users!
    – incorporate the ‘P2 Resolved Posts’ and maybe ‘P2 Check In’ and ‘jonradio Private Site’ functions into the system
    – incorporate the ability to sort the blog page by either date of original post, or date of latest EDIT or COMMENT. Currently the latest post is on the top and if a comment has been made to an old post from a month ago, you’ll only know if you look at the widget that indicates activity… not good enough for my purposes.
    – incorporate the ability to filter the blog page by GROUP membership. This is the big one!!!

    So in daily use, the users will add posts containing new information relevant to their workgroup (or workGROUPS), edit existing posts to revise items if necessary (perhaps add another check box that P2 includes so nicely or revise an original detail), mark resolved or unresolved (P2 Resolved Posts idea) and add comments to existing posts. This is exactly what P2 Theme does now… with a plug-in or two… except it doesn’t allow the idea of workgroups.

    The system would be much more functional if the BP power could be applied.

    The extra functionality would allow different working groups to post/comment to the blog page as normal, but be able to filter out other work groups they aren’t interested in. They would be able to view the page based on the date of original post, or date of post revision, or date of latest comment. Therefore content could be displayed in an order that more reasonably and logically suits a workgroup user.

    The power P2 Theme offers is huge, but it needs to go a little further to really do what I think it should…

    Using bbPress seems like a reasonable option… except it doesn’t allow the quick and easy posting the way P2 Theme does… and would isolate each workgroup into a different forum. It feels like a confining method! I want to be able to select any of the workgroups I want shown (and belong to) and have them appear in the sort order I’ve selected.

    I’ve included the jonradio Private Site plug-in in my function wish list, because it would allow the functionality described above to exist not just in an Intranet environment, but also (carefully) exposed to the Internet as well. Allowing workers in the field to update information would be very useful.

    #155075
    davidwood9999
    Participant

    hi guys,
    I’m creating a forum called ‘Impact the World’ – and people will write a post in there every time they impact someone’s life, no matter how small.

    I’d like to have a widget in the right hand column (or somewhere) that displays a graph showing the total posts by that user, and total posts across all users – so we can measure the IMPACT we are making on the world.

    1) What’s the php code to count total posts in a particular forum?

    2) How can I display total current user posts, total all user posts, and user name of the TOP POSTER, in some kind of widget?

    (Sorry I’m a php and buddypress noob!)

    David

    #154591
    myladeybugg
    Participant

    I am allowing guest posts on my main blog without the guests having to create users. I am trying to implement code that overrides the output of the_author using a custom field, but can’t seem to get it to work.

    When I looked in the bp-default single.php I did not see a call to the_author, maybe I missed it, but I’m thinking this could be the issue.

    Here is the code I am working with:
    `add_filter( ‘the_author’, ‘guest_author_name’ );
    add_filter( ‘get_the_author_display_name’, ‘guest_author_name’ );

    function guest_author_name( $name ) {
    global $post;

    $author = get_post_meta( $post->ID, ‘guest-author’, true );

    if ( $author )
    $name = $author;
    return $name;
    }`

    Any ideas on how to get it to work?

    Aventador
    Participant

    Hallo @talha8877

    Excuse me, my English is not so good, unfortunately.

    I used the plugin Cartpauj PM Plugin from Mingle, as I have found as yet no viable solution to the buttons (message etc) of the BuddyPress insertion into posts / Articels.

    So now I turn off the message part of BuddyPress and linking all the Cartpauj PM, which works wonderfully, except out of BuddyPress. There does not work.

    Of Cartpauj in single.php just the link:

    <a href = "/ news / pmaction newmessage = & to = “> Send

    . put But as I said, the link works in BuddyPress indeed, but does not with the member users, which I will write. Since I’m still looking for a solution. Evtentuell with: bp user id, funktioiert might not.

    So who has a solution to integrate Cartpauj PM in buddybress, bring it on.

    That´s it

    Thank you

    talha8877
    Participant

    Hi Chouf,

    Thanks for the response. Although I’m having hard time connecting the dots.
    I’d already used
    `bp_add_friend_button( $user_ids[‘users’][$i]->id ) ?>`

    directly in my code but it didn’t return any results.
    Do I need to use an action hook to display it in posts?

    #150695
    Ben Hansen
    Participant

    well that’s not the way it works at all when network activated some aspects of buddypress provide network wide functionality but the front end display is only as i say on the primary blog/site for instance you can use buddypress to give your users the ability to create their own sub sites (in a more user friendly fashion then wordpress itself provides alone) and any activity on the various sub sites will be displayed in the network wide activity feed which again only displays on the primary blog by default.

    Dedalos
    Participant

    Hi;

    I’m using the last versión of buddypress and wordpress and I have this problem:

    I want the registered users can publish and edit their own posts in the main loop of the wordpress theme. The registered users can publish posts (their default role is Author) but they CAN’T update it later!?, wp display “Uh… No.” error page.

    When disable buddypress this works fine. What could I do to make it work?

    Thank you,
    Roy

    #149210
    aaclayton
    Member

    Hey BP community,

    I built myself a handy little “Who’s Online” widget that displays the number of current active members and displays up to 10 names of current browsers in my footer.

    The only issue I have with it is on any page that already uses a bp_has_members() loop, the arguments of the main loop override my Who’s Online listing, causing it to repeat the same list of users.

    I know with a WordPress posts loop I can use wp_reset_query() to destroy any existing queries to use multiple loops on a page. Is there a buddypress equivalent function for has_members()?

    Thanks!
    Andrew

    #148193
    shanebp
    Moderator

    >a page where my users can be curators and have collections of custom posts

    CPs that they created ? Or created by anyone ?

    Usually a profile extension is used for this.

    But you say ‘outside of buddypress’ so you mean a WP page… ?
    Then, because you want it driven by activity_ids, write a custom query.
    Use each activity_id to find the user_id in the activity table, look for posts by that member in the posts table and show the results in a loop.
    Use 2 queries if you can’t write a JOIN.

    #148187
    designnz
    Participant

    Hi @shanebp, thanks for the reply. Im wanting to have a page where my users can be curators and have collections of custom posts (via activity_id). It will fall under its own page outside of buddypress with a special activity page for displaying items.

Viewing 25 results - 101 through 125 (of 287 total)
Skip to toolbar