'; ?> <?php bloginfo_rss('name'); ?> (array) $exclude_ids, 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => esc_attr($number_of_articles), ); 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() ?> ]]>