Quantcast
Channel: RSS Category Feed – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13

Trying To Enable RSS Feed By Category – PLEASE HELP

$
0
0

I’m doing my best to enable the category feed in my arras (1.5.0.1) based site listenupdenver.com.

I’d like to generate a category feed from this page listenupdenver.com/?cat=12 but I cannot get it to work.

I have tried adding the “feed” tag to the end of it and going through numerous other steps that I’ve found on the web, all to no avail.

I’m now trying to modify my template.php code and my header.php code to recognize the new Feed but I’ve hit a brick wall.

I’ve added:
<?php if ( ($feed = arras_get_option(‘news_feed_url’) ) == ” ) : ?>
<link rel=”alternate” type=”application/rss+xml” href=”<?php bloginfo(‘cat=12_url’) ?>” title=”<?php printf( __( ‘%s news’, ‘arras’ ), esc_html( get_bloginfo(‘name’), 1 ) ) ?>” />
<?php else : ?>
<link rel=”alternate” type=”application/rss+xml” href=”<?php echo $feed ?>” title=”<?php printf( __( ‘%s news’, ‘arras’ ), esc_html( get_bloginfo(‘name’), 1 ) ) ?>” />
<?php endif; ?>

to the Header.php code and I’ve added:

$news_feed = arras_get_option(‘news_feed_url’);

to the Template.php code and I can’t get it to work.

The result keeps sending me back to a link to the main page of my site because I’m sure I don’t have the ?php bloginfo(‘cat=12_url’) piece correct. I’m sure that I need to change the “cat=12” portion of that to something else, but I can’t for the life of me figure out what it would be.

Any help would be GREATLY appreciated. This has been quite the chore!!!

Thanks!


Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images