• Resolved Panos_M

    (@panos_m)


    Hello,

    i have this feed in my website ( Custom post type ) https://www.jobseeker.gr/?feed=job_feed

    I can modify the title of the feed <title><?php wp_title_rss(); ?></title in Titles & Metas – Yoast SEO in the Custom Post Type Archives. Recently i have %%sitedesc%% %%sitename%%

    Is it possible to add ![cdata] to this title anf if yes how to do it?

    Any help is welcome?

    Best Regards,
    Panos

Viewing 1 replies (of 1 total)
  • Thread Starter Panos_M

    (@panos_m)

    Adding the above code make it work

    //Add cdata to feed title 
    add_filter( 'wp_title_rss', 'add_cdata_to_feed_title' );
    function add_cdata_to_feed_title ( $title ) {  
           return '<![CDATA[' . $title . ']]>';   
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Add ![cdata] to feed rss title’ is closed to new replies.