Add ! [CDATA] to title tag in xml feed
-
Hello,
my website feed according to wp job manager is here: https://www.jobseeker.gr/?feed=job_feed
What i want is to adding ![CDATA] also to <channel><title>tag and to every <item><title>tag.
i was trying with the above code but without luck:
add_filter('the_title_rss', 'job_modify_post_title'); function job_modify_post_title ( $title ) { if ( is_feed('job_feed' ) ) { return '<title><![CDATA[' . $title . ']]></title>'; } }
Any help to this?
Best Regards,
Panos
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add ! [CDATA] to title tag in xml feed’ is closed to new replies.