'; ?> <?php bloginfo_rss('name'); ?> 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => esc_attr($number_of_articles), 'no_found_rows' => true, 'meta_query' => array( array( 'key' => 'ampforwp-ia-on-off', 'value' => 'default', ), ) ); if(ampforwp_get_setting('fb-instant-article-order-by') == 2){ $ia_args['orderby'] = 'post_modified'; } if ( ampforwp_get_setting('hide-amp-ia-categories') ) { $exclude_cats = array_values(array_filter(ampforwp_get_setting('hide-amp-ia-categories'))); $ia_args['category__not_in'] = $exclude_cats; } if ( is_category() ) { $ia_args['category__in'] = get_queried_object_id(); } if ( is_tag() ) { $ia_args['tag__in'] = get_queried_object_id(); } if ( is_tax() ) { $tax_object = get_queried_object(); $ia_args['post_type'] = get_post_type(); $ia_args['tax_query']['taxonomy'] = esc_attr($tax_object->taxonomy); $ia_args['tax_query']['field'] = 'id'; $ia_args['tax_query']['terms'] = esc_attr($tax_object->term_id); } $ia_args = apply_filters('ampforwp_ia_query_args' , $ia_args ); $ia_query = new WP_Query( $ia_args ); while( $ia_query->have_posts() ) : $ia_query->the_post(); ?> <?php the_title_rss() ?> ]]>