Replies
Hello Paul,
Thank you for using the plugin. The Blogs created using BuddyBlog Pro are normal WordPress blogs so you can use any plugin which allows WordPress post import/export. Check under the Tools > Import section of the admin dashboard You will find the name ‘WordPress’ and to export blogs check Tools > Export. Give it a try and let me know if it helps or not.
Regards
RaviHello Lain,
Thank you for using the plugin. Only users with the administrator role can delete and edit other user’s media. Please make sure while checking your logged-in user does not have an administrator role. Please give it a try with a regular user.
Regards
RaviHello Jason,
Sorry for the inconvenience. I have tried BuddyBlog Pro with the free version of the Restrict Content Pro available on WordPress and it is working fine Tabs are added as per BuddyBlog Pro settings. There might be confusion or configuration issues. Please try to disable all plugins except BuddyBoss Platform and BuddyBlog Pro to find out who is causing the issue so that We can debug further.
– Tab is visible to – Anyone
Will not work for tabs like ‘Create’, ‘Pending’ and ‘Draft’ because it is user-specific.Also, Is there any plugin with deals with BuddyPress user tabs please let me know.
Regards
RaviHello Lode,
I am assuming BLOG, NEWS and ANNOUNCEMENTS are the categories and in the following code, I am mapping WooCommerce products with these categories so that at the time of form submission I can make sure that the Category and selected WooCommerce products are similar.
/** * array ( * product_id => category_id * ) */ $product_category_mapped_ids = array( 5 => 16, 6 => 18, );
If this is not the case. Please let me know what are BLOG, NEWS and ANNOUNCEMENTS.
You can put the code in the ‘bp-custom.php’ file. If you do not know what is bp-custom file you can refer to the following blog post:
https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/
Regards
RaviRegards
RaviHello Lode,
I am assuming your are using dropdown view of category which allow only one category to be selected. Try the following code:
add_filter( 'bblpro_validation_errors', function ( $errors, $data, $prepared_post_data, $form_id ) { if ( ! function_exists( 'bbl_ppp_form_has_paid_posting_enabled' ) || ! bbl_ppp_form_has_paid_posting_enabled( $form_id ) ) { return $errors; } if ( is_wp_error( $errors ) && $errors->has_errors() ) { return $errors; } // Do not validate if save draft action. if ( isset( $data['action'] ) && 'bblpro_save_draft' == $data['action'] ) { return $errors; } // Replace with your taxonomy. $tax = 'category'; $taxonomy = get_taxonomy( $tax ); $term_data = isset( $data['tax_input'] ) ? wp_unslash( $data['tax_input'] ) : array(); $selected_term = isset( $term_data[ $tax ] ) ? absint( current( $term_data[ $tax ] ) ) : 0; $selected_product_id = isset( $data['bblpro_ppp_product_id'] ) ? absint( $data['bblpro_ppp_product_id'] ) : 0; if ( empty( $selected_product_id ) || empty( $selected_term ) ) { return $errors; } /** * array ( * product_id => category_id * ) */ $product_category_mapped_ids = array( 5 => 16, 6 => 18, ); if ( ! isset( $product_category_mapped_ids[ $selected_product_id ] ) ) { // what should we need to return here. If selected product not in mapped array. return $errors; } if ( $product_category_mapped_ids[ $selected_product_id ] != $selected_term ) { $errors->add( "bbl_tax_$tax", sprintf( __( '%s is invalid. Please select matched with selected product', 'buddyblog-pro' ), $taxonomy->labels->singular_name ) ); } return $errors; }, 20, 4 );
Note: Please replace taxonomy and mapped product and term id array as per your configuration. Please give it a try. Please make sure the product and category field is required.
Regards
Ravi