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: 24211
    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.

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

This topic is: resolved