Hi Maybellyne,
thanks for your answer!
Yes, this is a solution, if nothing should be shown. That’s clear enough.
But I want this to be shown on normal feed https://domain.com/feed/ and NOT on https://domain.com/category/feed/.
Searching the web I found a solution, which I’ve configured for me.
Maybe it will help some others?
add_action( 'rss_tag_pre', function( $tag )
{
$yoastrss = filter_input( INPUT_GET, '_yoastrss', FILTER_SANITIZE_STRING );
if( 'yes' === $yoastrss)
add_filter( 'wpseo_include_rss_footer', true, full );
elseif( 'no' === $yoastrss)
add_filter( 'wpseo_include_rss_footer', false, full );
} );
You have to add
?_yoastrss=no
at the end of your feed URL (https://domain.com/category/feed/)for deactivating this in a special feed!
Best,
GeorgBNM