Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Devin,
    Just checking if you had time to look at my last reply. I am looking forward to hear from you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Have fixed it now. Closing this topic.
    Thank you for notifying me about the issue. I appreciate that.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Maelga,
    Thank you. Noticed that after your post. Will get it fixed today. It seems my recent changes have broken this.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Michel,
    I have pushed the update on wp.org. It will give you the option to limit content with number of words.

    If you limit the content, It won’t show any image. All tags are stripped.

    Please let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Michel,
    The CSS needed will only affect the SWA widget. We can specifically target the selectors, so that should not cause any problem.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Michel
    Thank you for the reply.

    I went ahead with refactoring the SWA plugin so that we won’t have to worry about it next 2 years anymore.

    I will put it anytime today. I am not sure If we need to put a filter for images but I will see. The images can be hidden case by case using css.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Anders,
    Just updating. Have been doing some update and we will have this ready for you in next 12 hours or so.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Devin,

    1. to set a default category when the user does not choose it

    
    
    add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' );
    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 = 32;//ID
    		wp_set_object_terms( $post_id, $term, 'category' );
    		
    	}
        
    
    }
    
    

    Change the value of term with the ID of the category you want to assign.

    2. To Order the list display, I am sorry but that will need another update for simple front end post. you can download it from the site now. and then, as in my previous replies, I had posted the code for modifying setting, here is updated version of that

    
    function buddyblog_show_custom_cats( $settings ) {
    	$tax = array();
    	 
    	$tax['category'] = array(
    
    		'taxonomy'		=> 'category',
    		'view_type'		=> 'dd',
    		'child_of'		=> 29, //CHAGE It with the correct ID,
    		'orderby'		=> 'slug',
    		'order'			=> 'ASC'
    	);
    	
    	$settings['tax'] = $tax;
    	
    	return $settings;
    }
    
    

    Hope that helps.

    Please do let me know how it went for you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Anders,
    I am sorry but I won’t be able to have the second option included in today’s upgrade. To make that efficient, It will need time to implement.

  • Keymaster
    (BuddyDev Team)
    Posts: 25463

    Hi Devin,
    Thank you.
    I am glad that it did work 🙂

    1. That is doable, we will need to use some code to do that

    2. Yes, it is doable too. We are using wp_dropdown_categories() which allows us to sort by ID,Name,slug in ascending or descending order. which order you want?

    Please let me know and I will put the code 🙂