Replies
- phil may on December 4, 2018 at 2:53 pm in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #19222
youre absolutely correct, i dont know why but when i try to activate it again it just activates the parent theme…
- phil may on December 3, 2018 at 2:44 am in reply to: [Resolved] tried to limit categories in buddyblog now it will not render #19176
Brajesh, for some reason after updating BP none of this code in my child theme functions.php is working, the slug stays buddyblog and all cats + tax show:
define( 'BP_BUDDYBLOG_SLUG', 'battleblog'); function buddydev_add_default_category_to_post( $post_id ) { $tax = array_filter( $_POST['tax_input'] ); if( empty( $tax ) && $post_id ) { //no category was set $term = 79;//ID wp_set_object_terms( $post_id, $term, 'category' ); } } function buddyblog_show_custom_cats( $settings ) { $tax = array(); $tax['category'] = array( 'taxonomy' => 'category', 'view_type' => 'dd', 'child_of' => 91, //CHANGE It with the correct ID, 'orderby' => 'slug', 'order' => 'ASC' ); $tax['post_tag'] = array( 'taxonomy' => 'post_tag', 'view_type' => 'dd', 'include' => array( 83,85,88,92),// tag ids. 'orderby' => 'slug', 'order' => 'ASC', ); $settings['tax'] = $tax; return $settings; } add_filter( 'buddyblog_post_form_settings', 'buddyblog_show_custom_cats', 100 ); add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' );
I never had a bp-custom.php, I just used the child function file and it worked before. If that is why its not woorking now where in my child can i add that file?
I agree with you 100%, but whenever i mention to them a buddypress compatibility issue they act insulted as if I am talking bad about the work they’ve done, but in reality all I’m doing is trying to improve usability for everyone including myself. I feel like they dont actually know how to fix it and the only way I will get them to implement any improved code is if i give it to them. I might be good at finding bugs and issues but I sure cant write php!
could this be fixed with a custom registration template in the child theme?
maybe i can just block filetypes in uploads with htaccess rules
no you are right they never had any sub tabs at all. I wonder if this is fixable by customizing the child theme
yeah unfortunately this only works on top level tabs but wont allow me so save on subs. Good catch though at least I can do my main tabs now
any luck with a little snippet?
ill try to get them to make a new registration page template but i doubt they will
Absolutely, and wherever you are happy Thanksgiving from america brother.