Search Results for 'wordpress'
-
Search Results
-
Hi, I’d like to have my site Authors (Editors in Buddypress) unable to delete the posts and pages at my site (that I created). I tried the code below (from the link below, swapping “author” for “editor”), but it didn’t work (also tried it with author instead of editor to no avail).
function wpb_change_editor_role(){
global $wp_roles;
$wp_roles->remove_cap( ‘editor’, ‘delete_posts’ );
$wp_roles->remove_cap( ‘editor’, ‘delete_published_posts’ );
$wp_roles->remove_cap( ‘editor’, ‘delete_pages’ );
$wp_roles->remove_cap( ‘editor’, ‘delete_published_pages’ );
}
add_action(‘init’, ‘wpb_change_editor_role’);Code originally found here: https://www.wpglobalsupport.com/prevent-authors-deleting-posts-wordpress/
Any idea how I could code this correctly so it works as intended?
Thanks!WP version 6.4.2
BP version 12.0.0
also installed: Better MessagesRunning a latest WordPress/BuddyPress installation on a webspace. When doing a test run I was baffled that already after 8 users logged in, everything went sluggish and no other user could log in. Now I need to find out what is the limiting factor.
There is 348 MB Ram available.What is the most likely resource that runs short?
How could I find out/test?
What is the roughly estimated usage per logged in user of
– ram
– bandwidth
– cpu (e.g. x user per GHz)
– other ?What are your experiences with simultaneous login numbers?
Topic: Forum pagination problem
Wordpress 6.4.2
BBPress 2.6.9
Buddypress 12.0.0Hi,
Pagination in buddypress fora (private group forum) is not working anymore. Only de first page is shown, whatever pagenumber one clicks on.
e.g
forum /groepen/icsi/forum/page/2/ shows page /groepen/icsi/forum/
topic /groepen/icsi/forum/topic/icsi-2023/page/3/ shows /groepen/icsi/forum/topic/icsi-2023/This renders these fora unusable if sorted on datetime ascending.
There are no errors or warnings in the php logfile.
Deactivating all plugins (except bbpress, buddypress) does not make any difference. Changing theme does not make any difference.
Pagination under BBpress fora works fine.
So it seems that buddypress does not react on the last part of the url’s (e.g. /page/3/ )
Temporary workaround :
Up the amount of topics and replies per page under bbpress settings so that pagination does not show up.
When I added “bp-menu bp-logout-nav” to my menu items in BuddyPress, clicking on any other BuddyPress menu item such as notifications, messages, or profiles would log me out of WordPress unexpectedly. After removing the “bp-menu bp-logout-nav” from the menu, I no longer experienced logging out when clicking on any menu component.
“bp-menu bp-logout-nav” is affecting other menu items of buddypress. How can I resolve it, I also have reinstalled buddypress plugin after deleting it but problem is still present.

