function comicpress_insert_comic_feed($content) { global $wp_query, $post; $category = get_the_category($post->ID); if (is_feed() && comicpress_in_comic_category($category[0]->cat_ID)) { echo comicpress_comic_feed(); } return apply_filters('comicpress_insert_comic_feed', $content); }
function comicpress_insert_comic_feed($content) { global $post, $wp_query; if (is_feed()) { return comicpress_comic_feed() . $content; } else { return $content; } }