BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24998
    Brajesh Singh on in reply to: Custom fields on user post #718

    Hi Irne,
    i haven’t used types plugin, so Can’t say much about that. Can you please try this code instead.

    
    
    <h4> Price: <?php echo get_post_meta( get_the_ID(), 'show-price', true ); ?> EURO </h4>
    
    

    Does that work?

  • Keymaster
    (BuddyDev Team)
    Posts: 24998
    Brajesh Singh on in reply to: [Resolved] BuddyPress Activity Shortcode Load More #717

    First, I missed your post here again because of other ongoing threads. There was an easy fix, after seeing your message I pushed that to github today.
    https://github.com/sbrajesh/bp-activity-shortcode/commit/da2692368eb75ef434b8ccf67f1cd9268b443165
    Here is the plugin download
    https://buddydev.com/plugins/bp-activity-shortcode/

    Second, you don’t have to trust my code, I know what I write and I hold a graduate degree in software engineering with more than 8 years of experience, so I don’t need your recognition for my programming ability.

    Just wanted to clarify about your other misleading comment, As I checked, this pluigin was listed to have support package available. No, you are not required to buy it but don’t give an impression that you wanted to.

    Time is very important, and I may not be able to handle all the free requests we have been getting here, Our paid members are priority and they will remain so. I will keep investing some time in supporting free members, but there is no guarantee on free support.

    So, if you are looking for free support, you are most welcome, I will do my best to provide support, but there is no guarantee or time frame.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998
    Brajesh Singh on in reply to: Custom fields on user post #714

    Hi Irene,
    Are you referring to the edit form display or display on single post page? Also, are you letting the single post to be displayed on profile on their own individual normal pages.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998
    Brajesh Singh on in reply to: Custom fields on user post #711

    You can put the code in your theme’s functions.php or bp-custom.php inside the plugin directory.

    The code should be

    
    
    add_filter( 'buddyblog_post_form_settings', 'buddydev_custom_buddyblog_settings' );
    
    function buddydev_custom_buddyblog_settings( $settings ) {
    
    	$custom_fields = $settings['custom_fields'];
    
    	$custom_fields['testcf'] = array(
    		'type'		=> 'text',
    		'label'		=> 'test custom field text',
    		'default'	=> ""
    	);
    
    	//and repeat
    
    	//then update settings
    
    	$settings['custom_fields'] = $custom_fields;
    
    	return $settings;
    }
    
    

    Hope that helps.

    PS. you can use backticks(`) to post code block here.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998
    Brajesh Singh on in reply to: Custom fields on user post #709

    Hi Irene,
    Welcome to BuddyDev forums.

    No, you don’t need to modify that. Instead you can filter the buddyblog form settings and ask it to disply the form for adding meta.

    You can filter it like this

    
    add_filter( 'buddyblog_post_form_settings', 'buddydev_custom_buddyblog_settings' );
    
    function buddydev_custom_buddyblog_settings( $settings ) {
    	
    	$custom_fields = $settings['custom_fields'];
    	
    	$custom_fields['new_meta_key'] = 	 array(
    					'type'    => 'text',
    					'label'   => '',
    					'default' => ''
    				);
    	
    	//and repeat
    	
    	//then update settings
    	
    	$settings['custom_fields'] = $custom_fields;
    	
    	return $settings;
    }
    
    

    Here is a post that details what meta fields are available

    https://buddydev.com/support/forums/topic/custom-field-in-bp-simple-front-end-post/#post-383

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998

    Hi Jan,
    I have got that functionality in addons. A little bit busy with documentation as we need to put a lot of documentation. Will start releasing some of the free addons next week( View Counter, mycred points etc).

  • Keymaster
    (BuddyDev Team)
    Posts: 24998

    Hi Kent,
    Welcome to BuddyDev forums.

    With the current BuddyBlog, you don’t need to write any custom code for using custom post type. Please visit Settings->BuddyBlog settings and then select your custom post type. Click save. After the page reloads, It will show you taxonomy options for that selected post type. please update as you need.

    Hope that helps.

    Thank you
    Brajes

  • Keymaster
    (BuddyDev Team)
    Posts: 24998

    Hi Jan,
    here is the direct link to the zip file.
    https://github.com/buddydev/mediapress/archive/master.zip

    The version has not changed(considering the current speed, I believe we will get the Rc next week). You can always download the most recent version by clicking on that link.

    If you want to see all the changes, you can view this link
    https://github.com/buddydev/mediapress/commits/master

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998

    Note: If you are trying to test Sitewide Media Gallery, please upgrade again( My apologies). There was a bug in sitewide gallery. If you are using it for BuddyPress only, there is nothing to worry about.

  • Keymaster
    (BuddyDev Team)
    Posts: 24998

    Hi Jan,
    Thank you. If possible, please send via github or drop me a mail on brajesh@buddydev.com (Please do provide me some way to credit you, your preferred name/business/site).

    In future, I am hoping to setup an install of glotpress, that will allow us to do translations during development.

    Thank you
    Brajesh