jcprovideo
Member
Posted 3 years ago #
I want to edit my WP RSS feed to display a specific URL instead of the default (permalink) for certain categories. I need to only do this for certain categories as the standard permalink is not when I want to direct subscribers to.
I have done this same thing on my search.php and archive.php using conditional statements, but how do I accomplish this in the RSS feed?
functions.php?
jcprovideo
Member
Posted 3 years ago #
Here is an example of how I did it on my search results (search.php)
<?php if ( in_category('3') ) { ?>
<h3><a href="<?php bloginfo('url'); ?>/about/#<?php the_ID(); ?>" rel="bookmark" title="Permanent Link to About Page">
<?php the_title(); ?>
</a></h3>
jcprovideo
Member
Posted 3 years ago #
Perhaps I should rephrase. How does one go about customizing their RSS feed. Is there a template like index.php but for RSS?
jcprovideo
Member
Posted 3 years ago #