Dynamic comments_rss_link generation? (2 posts)

  1. war59312
    Posted 8 years ago #


    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="http://www.example.com/wp-content/themes/test/img/feed-icon.png" 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,


  2. war59312
    Posted 8 years ago #

    1 week bump

Topic Closed

This topic has been closed to new replies.

About this Topic