• I’m trying to add a link/button that will allow folks to get the RSS feed for my category within a post. For instance within post in category 1 I want a link to appear that will setup a feed for category 1.
    Here’s what I was able to get (so far)

    a href=”https://mydomain.org/home.php/?feed=rss2&<?php get_cat_ID() ?>”>rss

    I don’t know how to post the exact code into this question, but I know the general HTML tags. They are just missing for this becuase I lack the foo.

    All I get is the rss for my entire blog. Any hints?

Viewing 1 replies (of 1 total)
  • Try this bit of WP/PHP trickseyness:

    <?php $cats = get_the_category(); ?>
    <a href="<?php get_category_rss_link(true, $cats[0]->cat_ID, $cats[0]->category_nicename); ?>">rss</a>

Viewing 1 replies (of 1 total)
  • The topic ‘RSS add within post’ is closed to new replies.