user2117713
user2117713

Reputation: 97

WordPress RSS feed with tag display

I have just fresh WordPress installed. I am going to post a blog, I have created a category called "Client care" and created tags name "news" also I post the blog

When I checked my RSS feed (name.com/feed), It'll display

enter image description here

Can anyone please tell me, how do I fix this issue?

Upvotes: 0

Views: 392

Answers (2)

pensebien
pensebien

Reputation: 554

At Essence.com, we use this

<topics><![CDATA[<?php echo implode(', ', wp_get_post_terms(get_the_ID(), 'article_tags', array('fields' => 'names'))); ?>]]></topics>

in a custom RSS feed template. It displays the tags with links separated by ",".

Upvotes: 0

Darshan Patani
Darshan Patani

Reputation: 208

use this code for showing tags

$tags = get_the_tags( get_the_ID() );
foreach($tags as $tag){
         echo '<p>'.$tag->name.'</p>';
}

Upvotes: 1

Related Questions