-
Author
-
June 24, 2015 at 16:19 #64694parousiaParticipant
Hi!
I was wondering if you could tell me if there is a line of code I could edit somewhere that would allow me to limit the length of the latest update excerpt on the members page.
Also if possible I’d like to make the excerpt shorter on the members page as well.
Thanks!
June 24, 2015 at 17:03 #64708sharmstrModeratorperhaps this http://wordpress.stackexchange.com/questions/56860/truncate-latest-activity-in-buddypress
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 24, 2015 at 23:30 #64778parousiaParticipantI’m sorry but I’m not sure I understand that my coding ability is very limited.
I might need it spelling out a bit more if possible.
Is it not possible to change a number somewhere to change the excerpt length? Presumably one has been set in a file somewhere?
Thanks again.
June 24, 2015 at 23:51 #64785sharmstrModeratorIts set in a buddypress function. You can always ask over on the bp forums since its there plugin.
But, going back to my first response… You can try the code in the link I gave to you initially. I’ve tested this and it seems to be working. Put the following in your childs functions.php file and change the $length from 10 to whatever you want.
COPY CODEadd_filter( 'bp_get_activity_latest_update_excerpt', 'wpse_56860_trim_buddypress_excerpt' ); function wpse_56860_trim_buddypress_excerpt( $excerpt ) { // Number of characters to show. Adjust this to your needs. $length = 10; return substr( $excerpt, 0, $length ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.