Support » Plugins » Dynamic comments_rss_link generation?

  • Hey,

    I am simply try to create an image that links to the current post’s RSS feed.

    Currently I am using:

    <?php comments_rss_link('<img src="" alt="Feed For This Post" />'); ?>

    But the URL is static of course so the user would be required to edit the code for their blog.

    I know this is the code to grab the correct link:

    <img src="<?php echo get_settings('siteurl') . '/wp-content/themes/test/img/feed-icon.png' ?>" alt="Feed For This Post" />

    I just don’t know how to combine the two together? And yes its only for my theme at the moment so the other part of the url should be fine right? Or could I just add it to every theme some how?

    Thanks for your help,


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic comments_rss_link generation?’ is closed to new replies.