• Resolved aelfa

    (@aelfa)


    Hello,
    On the forum, I see how to create a multiple-category feed through a URI: your.site.com/index.php?feed=rss2&cat=3,8,14

    I would like to link to a feed only containing certain categories, but I don’t know PHP. How would I apply the concept above to my template code?

    <a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>">
    <img src="<?php bloginfo('template_url'); ?>/img/feed.gif" alt="RSS Feed" title="RSS Feed" width="56" height="26" border="0" id="feed" />
    </a>

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Just add the link in somewhere:

    <a href="https://your.site.com/index.php?feed=rss2&cat=3,8,14">Link to category RSS feed</a>

    Thread Starter aelfa

    (@aelfa)

    Would the link replace <a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"> in my template?

    Thanks!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    If you wanted it to replace that bit on your page, then yes. If you don’t, then no. ??

    It’s really up to you as you how you want your page to look.

    Thread Starter aelfa

    (@aelfa)

    Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple (but not all) category feed in PHP’ is closed to new replies.