Replies
Hi Richard,
Please use any of the existing plugin for offloading media. They should work out of the box. All MediaPress media is just attachment.Hope that helps.
Brajesh- Brajesh Singh on October 31, 2016 at 4:37 am in reply to: [Resolved] Buddyblog – How to limit Categories and Tags? #6200
Hi Ken,
Sure we can. here is the updated code from the above example.function buddyblog_limit_terms( $settings ) { if ( ! isset( $settings['tax'] ) ) { return $settings; } $tax = $settings['tax']; //it is multi dimensional array $tax_terms = array( 'category'=> array(1, 53 ), // tax_name=> term_ids 'post_tag' => array( 7, 9 ), //add as you please, //you can add other taxonomy too ); foreach ( $tax_terms as $taxonomy => $terms ) { if ( ! isset( $tax[ $taxonomy ] ) ) { $tax[ $taxonomy ] = array(); } $tax[ $taxonomy ]['include'] = $terms; } //update settings $settings['tax'] = $tax; return $settings; } add_filter( 'buddyblog_post_form_settings', 'buddyblog_limit_terms' );It is simplified to use multiple taxonomies.
Hope that helps.
Hi Marc,
My apologies. I just missed it. I see you are looking for multi fields. Please give me a day and I will update the plugin.Thank you
BrajeshHi Marc,
Please put this line in your bp-custom.phpadd_filter( 'bd_xprofile_field_type_membertype_as_radio', '__return_true');We have it mentioned on the page, It seems you skipped it somehow.
In future, we will allow it from the xprofile field create/edit page too.
Thank you
Brajesh- Brajesh Singh on October 30, 2016 at 9:26 pm in reply to: Xprofile dynamic drop-down content not saving in extended profile #6193
Hi Marc,
I am sorry but I can not understand the context. Which plugin/code are you using for the State/City combo.I will advise to ask the author of that code.
Thank you
Brajesh Hi Marc,
BuddyPress allows users to have multiple Member types but the management interface is not yet appropriate for that.The BP Member Types Generator plugin does not manage adding member type to user. It simply manages registering the member type.
If you are using our BuddyPress Member Type Xprofile Field plugin, Then you can certainly ask it to use checkboxes at registration.
Please see this
https://buddydev.com/plugins/bp-xprofile-member-type-field/Hope that helps.
Brajesh- Brajesh Singh on October 30, 2016 at 9:16 pm in reply to: [Resolved] Buddyblog – How to limit Categories and Tags? #6191
Please put the code in bp-custom.php .
- Brajesh Singh on October 30, 2016 at 9:15 pm in reply to: [Resolved] Buddyblog – How to limit Categories and Tags? #6190
Hi Ken,
hope you are doing fine.Please use the following code and modify the term ids with your own to include only them.
function buddyblog_limit_terms( $settings ) { if ( ! isset( $settings['tax'] ) ) { return $settings; } $tax = $settings['tax']; //it is multi dimensional array $taxonomy = 'category';//name of taxonomy // Array of term ids to include. $terms = array(1, 53 ); //term ids if( ! isset( $tax[ $taxonomy ] ) ) { $tax[ $taxonomy ] = array(); } $tax[ $taxonomy ]['include'] = $terms; //update settings $settings['tax'] = $tax; return $settings; } add_filter( 'buddyblog_post_form_settings', 'buddyblog_limit_terms' );Hope that helps.
Brajesh
- Brajesh Singh on October 29, 2016 at 10:24 am in reply to: Page galleries showing up as squashed together on mobile #6185
Hi Owen,
I will test with Kleo and post the code evening today or early tomorrow. It may need some css.Thank you
Brajesh - Brajesh Singh on October 29, 2016 at 10:21 am in reply to: [Resolved] Buddyblog – How to limit Categories and Tags? #6184
Hi Ken,
I am sorry I missed it. I will post the code today(Around noon PST).Thank you
Brajesh