Link entry's RSS feed for browsers (2 posts)

  1. selcouth
    Posted 11 years ago #

    I'm trying to edit my Post Template to have something like <link rel="alternate" type="application/rss+xml" title="RSS" href="http://host.com/entry-name/feed" /> - created dynamically for every entry. I've tried every RSS Template Tag but I can't seem to get anything with just text to put in the " ". <?php comments_rss_link('RSS'); ?> is creating me an actual hyperlink.

  2. selcouth
    Posted 11 years ago #

    I came up with a solution that isn't really pretty (since I'm using /%postname%/ permalinks) but works. <link rel="alternate" type="application/rss+xml" title="RSS" href="http://host.com/?feed=rss2&p=<?php the_ID(); ?>" />

Topic Closed

This topic has been closed to new replies.

About this Topic