new rss channel

This commit is contained in:
arlemp@selectel.ru
2022-02-21 13:53:43 +03:00
parent 9f2f3e0805
commit 3727594359
3 changed files with 81 additions and 0 deletions

View File

@@ -636,3 +636,15 @@ add_action( 'pre_get_posts', function ($query) {
});
function add_text_to_the_feed_end( $content ){
$content .= '
<p>
Источник: <a href="'. get_bloginfo('url') .'">'. get_bloginfo('name') .'</a>.
</p>
';
return $content;
}
add_filter( 'the_excerpt_rss', 'add_text_to_the_feed_end' );