Skip to content

Instantly share code, notes, and snippets.

@clreed87
Last active March 22, 2018 05:13
Show Gist options
  • Save clreed87/247d7826048afe73d2e3f2770896da21 to your computer and use it in GitHub Desktop.
Save clreed87/247d7826048afe73d2e3f2770896da21 to your computer and use it in GitHub Desktop.
Remove post titles in RSS feed for status posts
<?php
// Do not include the opening php tag.
//* Remove post titles in RSS feed for status posts
add_filter( 'the_title_rss', 'crt_change_feed_post_title' );
function crt_change_feed_post_title( $title ) {
if ( has_post_format( 'status' ) ) {
$title = '';
}
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment