The JPF Category Feed plugin allows you to easily list the RSS category feeds for your post. It is quite flexible, allowing a number of parameters that can derive horizontal and vertical listings or even ’sentence’ form. Installation is simple, copy the jpf_catfeed.php file to your Wordpress plugins folder and activate in your Plugins Management tab. The optional rss.gif file can be copied anywhere in your site, and can be referred to as specified below. Then, place the following code in ‘the loop’:
<?php jpf_catfeed([Image], [Images], [Before], [After], [Separator], [And]); ?>
- Image is the path to an image that will preceed the list. The image is not linked to anything, it is simply decorative.
- Images is an image that will preceed each category link, the image is included as part of the link.
- Before is anything you want to preceed each category link, commonly this would be used to define each category as a line item in a list, or to define CSS, but could also be brackets or other symbols.
- After would typically be used to close a tag that was opened with Before
- Separator is the text you want to separate the category links, most commonly a comma and space, or a vertical bar.
- And defines if you want the word ‘and’ followed by a space to separate the last two items, generally used if you are listing the categories in a sentence format. Set to true if you wish to use.
If you simply include <?php jpf_catfeed(); ?> you will get a line of your categories separated by a vertical bar (eg. “category1|category2|category3″).
Here are some examples of it’s use:
In this example, wrapping the function in an unordered list, and specifying $before = ‘<li>’ and $after = ‘</li>’ will give you a simple unordered list of your categories.
<ul><?php jpf_catfeed(”,”, ‘<li>’, ‘</li>’); ?></ul>
category1
category2
category3
Here an icon is included before each link. The icon is part of the hyperlink to that category.
<?php jpf_catfeed(”,’/wp-images/icons/rss.gif’, ”, ”, ‘, ‘); ?>
category1,
category2,
category3
Here the separator is changed to a vertical bar with a space on each side instead of a comma followed by a space.
<?php jpf_catfeed(”,’/wp-images/icons/rss.gif’, ”, ”, ‘ | ‘); ?>
category1 |
category2 |
category3
Here an icon is included before the first category, a comma and space is used to separate the items, and the last category is preceeded by ‘and’ instead of a comma.
<?php jpf_catfeed(’/wp-images/icons/rss.gif’,”, ”, ”, ‘, ‘, true); ?>
category1, category2 and category3
Size: 1,12 kBytes
FileType: .zip-File
Edited on 03. Mar 2007 - 15:54 h
Downloads: 707
Free for visitors



26 responses so far ↓
milo
Nov 8, 2006 at 6:02 am
If it’s good, why you don’t use it? Just wondering…
Joe
Nov 8, 2006 at 9:44 am
Funny you should ask. I’ve been slowly moving things around on my site, and I develped the plugin as part of that move. It will be appearing in my site very soon, as I introduce a frame that has feeds from post comments, post categories, and all posts on the site…
Binary Look » links for 2006-11-08
Nov 8, 2006 at 4:22 pm
[...] JPF Category Feeds Wordpress Plugin | So Joe… Выводит Ñ?пиÑ?ок RSS лент длÑ? рубрик текущего поÑ?та. (tags: rss рубрики wordpress плагин) [...]
Ezio
Nov 12, 2006 at 3:44 am
Hello Joe,
I have installed your plugin but it’s not working in my site.
Apart from installing your plugin do I have to make any changes
somewhere else?
Your help would be appreciated.
Thanks,
Ezio.
Joe
Nov 12, 2006 at 9:52 am
You shouldn’t have to make any changes to your templates beyond the line to all the function as I’ve described above. For example, to get mine (in the ‘Upate Notifications’ box on the top right) I put
<?php jpf_catfeed('','/wp-images/icons/rss.gif', '<li>', '</li>'); ?>in my sidebar. What did you put in and where did you put it? In your comment back, but <code> before your code and </code> after your code so it shows up here properly.Ezio
Nov 12, 2006 at 12:24 pm
Hi Joe,
this is the code:
', ''); ?>and I put it in the sidebar
Ezio
Nov 12, 2006 at 12:27 pm
sorry the code didn’t come out:
Joe
Nov 12, 2006 at 1:38 pm
Not sure why your code isn’t showing up in the comment, and my e-mail to you was rejected. It seems to work fine in both my sidebars. Are you looking at it on a post, or on your home page? If you put it in your sidebar, it won’t work properly on a non-single page as their would be more than one post available (I’m guessing you’d see the feeds for the last post, but not sure). I have mine in my sidebar, but I have it set to only show up if it’s a single page (one post). You can do this by using this code
If you try posting your code again, use [ and ] instead of < and >, maybe it will work (though as you can see above, my code is appearing without problem).
MazZziKa MazZziKa, Sr.
Nov 18, 2006 at 12:36 am
can u widget it plz
MazZziKa MazZziKa, Sr.
Nov 18, 2006 at 12:39 am
Then, place the following code in ‘the loop’:
where to add it ?
Joe
Nov 18, 2006 at 11:21 pm
Anywhere you want the link to appear. I have mine in my sidebar, and it seems to work fine there, but between your post and the comments is probably a more typical spot.
Dr.Mazika Dr.Mazika
Nov 23, 2006 at 2:23 am
i will use it in my sidebar but i have alot of themes as i use it for wpmu so can u widget it
: Webzone
Jan 12, 2007 at 4:57 pm
[...] Category-feed - Κάθε κατηγοÏ?ία Îχει ξεχωÏ?ιστό feed και Îτσι μποÏ?είτε να “κάψετε” στο feedburner μόνο την κατηγοÏ?ία με τα podcast. Tags:Blogs plugins.mp3 Podcast Tutorials [...]
RumorControl.org » Blog Archive » Category Feeds
Feb 1, 2007 at 6:04 pm
[...] Category Feeds in wordpress [...]
snakey
Mar 17, 2007 at 11:12 am
Hi, if I want to list only specific categories (not all), how do I do that? Thanks
Joe
Mar 18, 2007 at 2:20 pm
Their’s probably some way to modify the plugin to do that, but it can’t by default, and I wouldn’t know how to make it work. Sorry.
JPF Category Feeds - DevelopeNet.com
Apr 14, 2007 at 8:31 am
[...] Allows user to list feeds for the categories the current post is in. Author: Joseph Fieber Plugin Page Attached [...]
WP Plugins DB » Blog Archive » JPF Category Feeds
May 20, 2007 at 1:56 am
[...] Visit [...]
Lincoln
Jun 8, 2007 at 10:20 pm
This is a great idea for a plugin, but unfortunately when I tried to use it, it would only display one category feed, which was based on what category my latest post happened to be in. Weird. Oh well, guess I’ll have to do it manually.
tiagotb
Jul 23, 2007 at 8:26 am
Thanks! Very good plugin =)!
Scott CLark
Aug 17, 2007 at 4:55 pm
Couldn’t get this working with 2.1.2 Wordpress, even after taking your exact code as a test case. Insertion into sidebar.php. Has this been tested with 2.1.2?
22 Fantastic Plugins for Self-Hosted Wordpress Blogs | Adrian Wajsbrem Blog
Oct 24, 2007 at 8:49 pm
[...] JPF Category Feeds - Lists the feed URLs of the current post’s categories in the sidebar. [...]
å…¨é?¢è£?å‚™RSS Feedçš„19個Wordpressæ?’ä»¶ | 童上瑋的部è?½æ ¼
Oct 26, 2007 at 5:53 am
[...] JPF Category Feed 是一個å?¯ä»¥è®“ä½ è¼•é¬†åˆ—å‡ºæ–‡ç« åˆ†é¡žfeedçš„æ?’件。 [...]
(转)全�装备RSS Feed的19个Wordpress�件 at brickhu.cn
Mar 20, 2008 at 12:32 am
[...] JPF Category Feed 是一个å?¯ä»¥è®©ä½ è½»æ?¾åˆ—å‡ºæ–‡ç« åˆ†ç±»feedçš„æ?’件。 [...]
manele
Apr 6, 2008 at 6:51 am
Thank u so much!
Plugins Para Melhorar O Desempenho Dos Feeds Do Seu Blog « Tutoriais e Dicas
Jun 25, 2008 at 1:59 pm
[...] JPF Category Feeds WordPress Plugin adiciona links de feed por [...]
Leave a Comment