• I have a few articles in draft mode, they are still being written, however this plugin selects them as one of the 5 to submit to FB. Is there a way to turn off submitting drafts, or handpick the articles I want to submit? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having this issue as well.

    In the file:

    fb-instant-articles/wizard/class-instant-articles-wizard-review-submission.php

    I changed

    public static function getArticlesForReview() {
    		$post_types = apply_filters( 'instant_articles_post_types', array( 'post' ) );
    
    		// Cap the number of articles returned to
    		// 100 because of performance concerns.
    		return wp_get_recent_posts(
    		 	array(
    				'numberposts' => min( self::MIN_ARTICLES, 100 ),
    				'post_type' => $post_types
    			),
    			'OBJECT'
    		);
    	}

    to

    public static function getArticlesForReview() {
    		$post_types = apply_filters( 'instant_articles_post_types', array( 'post' ) );
    
    		// Cap the number of articles returned to
    		// 100 because of performance concerns.
    		return wp_get_recent_posts(
    		 	array(
    				'numberposts' => min( self::MIN_ARTICLES, 100 ),
    				'post_type' => $post_types,
    				'post_status' => 'publish'
    			),
    			'OBJECT'
    		);
    	}

    I added the post_status parameter to the query.

    I could see that my draft post was removed from the submit for review queue. I have not submitted for review yet, so not totally sure this takes care of the issue fully.

    Rich

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin is trying to submit drafts as part of recent 5 articles’ is closed to new replies.