'; ?> <?php bloginfo_rss('name'); ?> 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => esc_attr($number_of_articles), 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'ampforwp-ia-on-off', 'compare' => "NOT EXISTS" ), array( 'key' => 'ampforwp-ia-on-off', 'value' => 'hide-ia', 'compare' => "!=" ), ) ); 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_query = new WP_Query( $ia_args ); while( $ia_query->have_posts() ) : $ia_query->the_post(); ?> <?php the_title_rss() ?> ]]>