Dig a little deeper into the BP Messages file and you will see that bp_message_thread_content()
only outputs the last message in the thread.
Similarly with bp_message_thread_subject()
. bp_message_thread()
sets up the last message data but no other message data.
Instead it looks like you want a new class of BP_Messages_Thread_Template
to output the messages for the thread. eg.
while ( bp_message_threads() ) {
bp_message_thread();
$thread_id = bp_get_message_thread_id();
$order="DESC"; // or 'ASC'
new BP_Messages_Thread_Template( $thread_id, $order );
// so that instead of `bp_message_thread_content()
while ( bp_thread_messages() ) {
bp_thread_the_message();
bp_the_thread_message_content();
}
}
There are more methods/functions for that class but that should get you in the right direction… 🙂
Related Posts:
- Remove username in emails or swap username for email
- Help with adding pagination to custom wp_query
- Reordering Buddy Press profile navigation [closed]
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- How do I programmatically set a user as spam in BuddyPress? [closed]
- WordPress Stripping Colons?
- Buddypress update user avatar image via REST
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Why BuddyPress fields not saving?
- Change homepage content if user is logged in – BuddyPress
- How to do something when user profile rendereing?
- implementing a jQuery “click to expand” link in WordPress [closed]
- is user member of a group, show them categories [closed]
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- Customize Buddypress adminbar [closed]
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- copy fields value to another field
- How do I visualize the author’s post from the front end?
- Change username link in admin bar
- Where is the php file of single member profile view (BuddyPress)
- Create a dynamic buddupress tab
- Get string from array and start loop [closed]
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- The correct method to pass query vars in AJAX using ajaxurl
- Display user’s total comment count outside The Loop
- Getting the action’s tag name within the action
- WordPress Infinite Scroll without using any plugin
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- How to add query vars with paginated URLs?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Changing Link Attributes for Wp_Link_Pages
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- How to change
- Get only the grandchildren, not the direct children of page/current page?
- Use wp_remote_get to get JSON instagram feed from public profile
- How to add SVG icon above product tab title
- WP_Query sort using multiple numeric meta values
- Call to undefined function issue
- How can I generate random numbers inside my shortcodes on each implementation?
- custom widget on the footer
- WordPress does not load page.php, return 404.php
- How to hide all child pages with post_query?
- How can I apply_filters from inside a function?
- How do I start using an external API and PHP for a WordPress.org page?
- I want to load in a new class but only if the current page is single-movies.php
- wp query foreach deleting record returning only first or last item
- Customizer: Category Select Sanitize
- action theme mailchimp subscriber fields
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Skt full width basic slideshow problem
- RTL Stylesheet Confusion with WordPress
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- get_template_part() not firing within a switch statement when template has new WP_Query
- How to show/hide php table rows based on the content of custom fields
- How to determine from a different folder (outside wordpress) if a visitor is logged into WordPress
- Is a series of update_option calls safe, performance wise?
- how to get serialized post meta
- Scheduling an event inside plugin class is not working
- How to catch wordpress post ID when it’s published
- How to access or parse key/values that have “string”
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- wp_localize_script() and JavaScript namespaces
- Class property seems to lose scope, attached to save_post action?
- exclude custom post type from running a function
- WordPress – Get Posts with Category data
- Change Language Title Pagination on Subdomain non Multisite
- Call to “admin_notices” hook from a static method
- How to Create custom block for displaying information in content section which act like shortcode
- How to use Page link field with is_page()
- Running SMTP Conditionally
- How can I pass php code as a content while publishing a post
- Trying to show the category of a post in the post display
- 500 Error, Get custom field and returning it
- How do I add this OnClick event script to a custom button I’ve created?
- How can i limit the number of posts to the most recent 6 in my query?
- Post content, PHP help
- Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]
- is_user_logged_in() not working in homepage
- I want url from a file in media using title file
- WordPress using get_term to retreive slug not working as expected
- auto metakey value on post tile
- On a custom template, should I use wp_footer? [duplicate]
- Front end post submissions do not get submitted in the category
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- how to check for wordpress Query errors
- calling a function from a class in your template
- Custom single.php files for different post formats
- Troubleshooting “loopback requests that take too long”
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
- Order woo products, but first products must be with acf fields
- Remove /category/ from category (archive) page URLs (without using a plugin)
- JSON Object Value Show Undefine
- Login user into magento using wordpress account
- save array of objects with update_option
- What is the best way to reset the site? Different fails while set up
- Use of undefined constant issue
- Themeco Looper Provider Query String for current user posts [closed]
- Remove colon from CTP UI “Singular Label”