In die functions.php einfĂŒgen…
//Neuesten Post mittels Tag + weiteren Content im RSS Feed anzeigen function feedFilter($query) { if ($query->is_feed) { add_filter('the_content','feedContentFilter'); } return $query; } add_filter('pre_get_posts','feedFilter'); function feedContentFilter($content) { $args = array( 'numberposts' => 1, 'tag' => 'mists-of-pandaria' ); $posts = get_posts($args); if($posts) { foreach($posts as $post) { $content .= '<p>Der neueste Post zu "Mists of Pandaria": <a>ID) .'">'. $post->post_title .'</a></p><hr><p> Mehr auf <a href="'. get_bloginfo('url') .'" target="_blank" rel="noopener noreferrer">wow.bheimseinblog.de</a> und <a href="http://twitter.com/BheimseinBlog" target="_blank" rel="noopener noreferrer">Twitter</a>!</p><hr />'; } } return $content; }
Quelle: problogdesign.com