protected function parse_post_args( array $args ) {
		if ( isset( $args['page_type'] ) ) {
			$args['entry_type'] = $args['page_type'];

			unset( $args['page_type'] );
		}

		$entry_type = papi_get_entry_type_by_id( $args['entry_type'] );

		if ( $entry_type instanceof Papi_Page_Type ) {
			$args['post_type'] = papi_to_array( $entry_type->post_type );
		} else {
			$args['post_type'] = isset( $args['post_type'] ) ? $args['post_type'] : '';
		}

		return $args;
	}
protected function parse_post_args( array $args ) {
		if ( isset( $args['page_type'] ) ) {
			$args['entry_type'] = $args['page_type'];

			unset( $args['page_type'] );
		}

		$entry_type = papi_get_entry_type_by_id( $args['entry_type'] );

		if ( $entry_type instanceof Papi_Page_Type ) {
			$args['post_type'] = papi_to_array( $entry_type->post_type );
		} else {
			$args['post_type'] = isset( $args['post_type'] ) ? $args['post_type'] : '';
		}

		return $args;
	}
protected function parse_post_args ( array $ args ) { if ( isset ( $ args [ 'page_type' ] ) ) { $ args [ 'entry_type' ] = $ args [ 'page_type' ] ; unset ( $ args [ 'page_type' ] ) ; } $ entry_type = papi_get_entry_type_by_id ( $ args [ 'entry_type' ] ) ; if ( $ entry_type instanceof Papi_Page_Type ) { $ args [ 'post_type' ] = papi_to_array ( $ entry_type -> post_type ) ; } else { $ args [ 'post_type' ] = isset ( $ args [ 'post_type' ] ) ? $ args [ 'post_type' ] : '' ; } return $ args ; }
Parse post query arguments.

@param  array $args

@return array
Parse post query arguments .