• I’ve used the code (below) and placed it in the archives template. It partially works in that it is positioned correctly but it gives me a feed for the whole blog and not the category. Can you provide any further advice….see https://www.simplybetterway.com/blog. You will see the RSS image at the top of each category on the main page. Ignore the ones on the left sidebar

    The code I’m using is;
    <?php if ( is_category() ) { ?>
    <?php ob_start(); printf(‘%s’, single_cat_title(”,false)); $tmp = ob_get_clean(); ?>
    /?cat=<?php echo get_cat_ID(“$tmp”); ?>&feed=rss2″>Subscribe to Category RSS
    <?php } ?>

    and is placed in archives.php just before;

    <?php if (have_posts()) : ?>

    Any advice would be most welcome

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘rss feed by category, need a bit of help’ is closed to new replies.