On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




RSS Feed for Page/Subpage collections via Category?

UserPost

10:43 pm
3 Nov 2007


Otto Brandenberg

Guest

 
1

Hi and thank you for all your valuable plugins!

My girlfriend runs a Wordpress blog for writers, and collects author text works in three different static pages assigned with a topic, with every text being a sub-page of the main page topic. She wants to offer RSS Feeds for the authors from those three main pages, as she adds texts frequently.

As I did not find a way to create RSS Feeds from pages, I thought that "Categories" might work (as Wordpress offers Category RSS Feeds). So I found your wonderful plugin, installed it succesfully, assigned the main pages plus the subpages to three new categories (I choose "Post Categories" and not special Page categories, as I thought this would be the best bet).

But unfortunately Wordpress does not "see" the pages which I have assigned to the categories via your plugin, so those are not in the RSS Feed for the category. I suppose you write your link between page and category in a separate database field.

Is there any solution to what I want to do (with one of your plugins or another way)??? Thank you so much for any hint,

otto. 

10:57 pm
3 Nov 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5013

 
2

Actually I don’t hold data anywhere but with the WP category data. The plugin works largely because the WP developers do not EXPECT to find categories on pages and most of the time do not look for them to filter them out. So most of the built in functions work. Obviously it sounds like the RSS feed is an exception.

If I have some time tomorrow I can try and work out what query they are using to see if it can be intercepted and modified. But it;s also worth doing a good search in the hundreds of plugins out there as it wouldn’t surprise me to find a ‘page’ rss feed somewhere.

If I find anythign useful I’ll come back to this thread. 

12:24 am
4 Nov 2007


Otto Brandenberg

Guest

 
3

thanks for the fast reply!

yes, I understand that Wordpress mechanisms are not "looking" into categories of pages because they do not expect any. Before I tried the "category approach" workaround I already searched extensively for a plugin dealing with "page/subpage rss feed" but could not find any.

thanks again, your awareness to all those simultanious threads is amazing,

otto. 

2:20 pm
4 Nov 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5013

 
4

You know - I had a few minutes and started to look into this. I was going to add a category feed to my test site so I could watch what was happening and I can’t even work out HOW to create an RSS feed from categories!

If you now can you give me the template code? 

7:37 pm
4 Nov 2007


Mr Papa

Moderator

Arizona, USA

posts 1437

 
5

11:38 pm
4 Nov 2007


otto brandenberg

Guest

 
6

thanks for taking the time,

I do not have to do include any template tag to create the RSS Feed for categories, Wordpress does this for us, as Mr. Papa pointed out, just using the blogurl/categoryname/feed in a feed reader gives me the feed for this category.

This basic mechanism works for me, it is only that the pages which I have assigned to a category via your plugin are not included in the RSS feed.

 thanks again,

otto. 

12:55 am
5 Nov 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5013

 
7

Thanks Mr Papa.

OK otto. I am not at all sure iof this works but a very quick and rush test suggests it just might. So - no guarantees but it is worth a try!

Are you up to changing the code? If no then I can send it to you but if yes give this a tryout:

File: pcp-support.php (thats one of the pcp plugin files)

Go down to line 65 - the first line in the function pcp_include_pages($args). Change this:

if(is_category())

to this:

if((is_category()) || (is_feed()))

make sure you get the brackets all correct and the two ‘bar’ characters in the middle.

and please do come back and let us know if this worked or not! 

12:12 am
6 Nov 2007


otto brandenberg

Guest

 
8

hi andy,

 thank you for looking into this and a possible solution. I made now a brand new wp-231 install with only your plugin to have a proper test bed, and applied your code change in pcp-support.php.

result: the pages were included in the categories rss feed (yeah!), but the plugin functionality on the page overview page was messed up (it didnt show the pages which are assigned to a category, even if this category was definitely checked on the individual page edit page) - oh no!

so I did revert the code change (I was careful with the parenthesises), but the problem now is the same as described before: category rss feed includes pages, but the plugins own page does not work as expected.

so anyone out there better not apply the patch for the moment: i will create a fresh install again and check the behaviour before I apply the code change.

thank you anyway for spending time on this, I will report my proceedings in this thread.

cheers, otto. 

12:21 am
6 Nov 2007


otto brandenberg

Guest

 
9

I found the problem which I described in the post above:

If I have a subpage of a page parent, and the parent does not have the SAME category as the subpage, then the subpage will not show up in the Page Category Plus overview under the category of the subpage. Only if I assign the parent page to this same category both (the master and the sub) show up.

additionally, in the dropdown box of the Page Category Plus page, only categories which have already a page assigned to them show up. so I have to at least assign one page to a category in the single page editor before I can use this category in the Page Category Plus Page.

No problem, I can live with that. AND: RSS category feed inclusion of pages now seem to work "out of the box" without the patch above is applied!!!!!! this did not work for me yesterday.. oh well… computer stuff… (thinking: maybe it has to do with me upgrading the K2 THEME to the latest RC in between….?????)

thans again, otto. 

12:27 am
6 Nov 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5013

 
10

Thanks for all the work, testing and information. I will look into the first point (orphaned sub-pages).



Reply to Topic: RSS Feed for Page/Subpage collections via Category?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 11        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

Yellow Swordfish

12 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 1941

Posts: 13160

Members:

There are 916 members

There are 796 guests


Yellow Swordfish has made 5013 posts

Top Posters:

Mr Papa - 1437

-Radio- - 518

ovizii - 106

jfv - 82

RoseCitySister - 68

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)