BuddyDev

Search

[Resolved] Blog categories for groups – posts being created as drafts

  • Participant
    James Maiden on #1446

    Hi there,

    When new posts are created with Blog Categories for Groups and BP Simple Front End Post, the posts are created as drafts.

    Is there a way for these posts to be automatically published?

  • Keymaster
    (BuddyDev Team)
    Posts: 24501
    Brajesh Singh on #1447

    Hi James,
    For the time being, you can put this in your bp-custom.php to allow direct publishing.

    
    add_filter( 'bcg_form_args', 'bcg_custom_form_args' );
    
    function bcg_custom_form_args( $args ) {
    	$args['post_status'] = 'publish';
    	
    	return $args;
    }
    

    Please do note that this plugin is going through rewrite at the moment and we will have a version ready by next week that will allow you to select these settings from Settings page.

    Hope that helps.

    • This reply was modified 8 years, 11 months ago by Brajesh Singh.

The topic ‘ [Resolved] Blog categories for groups – posts being created as drafts’ is closed to new replies.

This topic is: resolved