1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any php/wordpress gurus can help with adding RSS to WP Twenty Ten theme?

Discussion in 'PHP & Perl' started by ycfme, Aug 18, 2011.

  1. ycfme

    ycfme Power Member

    Joined:
    Mar 24, 2010
    Messages:
    779
    Likes Received:
    65
    I tried this tutorial from here:
    HTML:
    http://wordpress.org/support/topic/rss-twenty-ten

    Code:
    <a href="<?php bloginfo('rss2_url'); ?>RSS Feed</a>
    <a href="<?php bloginfo('comments_rss2_url'); ?>Comments RSS Feed</a>


    Code:
    <div class="rss-feed">
    	<a href="<?php bloginfo('rss2_url'); ?>" target="_blank">
    	<img src="<?php get_template_directory_uri(); ?>/images/rss.png" style="width:16px; height:16px;" alt="RSS" />
    	</a>
    </div>
    
    Create a file rss-1.php add the Linked Image code above and save.
    
    To call the file add in your theme , header.php, footer.php or any other file.
    
    <?php /* Add RSS Feed Icon */ ?>
    <?php get_template_part( 'rss',1 ); ?>
    but i'm not doing something right or this code is incorrect.

    I would appreciate it if someone can point e in the right direction.

    Thanks
     
    Last edited: Aug 18, 2011