how to show author information on each wordpress post

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 WordPressapi.com - '.$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
https://purabtech.in

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

One thought on “Add Text to RSS in wordpress Post Title”

Leave a Reply

Your email address will not be published.