Add Text to RSS in wordpress Post Title

I faced very complex issue when my post get published. That post copied from other sites. Due to some wordpress plugin that is happening. wp-matic and wp-robots wordpress plugins are very bad which are stilling the other site blog and content.

Add Text to RSS in wordpress Post Title

Prevent the coping your content you should use my method. This method will add the additional text in your title so your wordpress posts will became more secure.
If you are wordpress developer then only use following code. Open your functions.php file from your theme and put following code in that file.

    function wordpressapi_rss_title($content) {
    global $wp_query;
    $postid = $wp_query->post->ID;
    $gpost = get_post_meta($postid, 'guest_post', true);
    $spost = get_post_meta($postid, 'sponsored_post', true);

    $content = 'Post by - '.$content;

    return $content;
    add_filter('the_title_rss', 'wordpressapi_rss_title');

This code will add the custom text in your title. For more information you can search in my blog

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *