#5074 closed defect (bug) (duplicate)
Feed URL Generator misses Slash - php wp_list_categories(’sortby=name&feed=RSS’)
Reported by: | imagiscapeca | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.2.1 |
Component: | General | Keywords: | slash trailing feeds categories |
Focuses: | Cc: |
Description
The code:
<?php wp_list_categories(’sortby=name&feed=RSS’); ?>
produces:
www.example.com/category/caregiverfeed.
but we need
www.example.com/category/caregiver/feed.
categoryfeed is not a feed,
category/feed is a feed.
2 POSSIBLE BUGS:
#1:
On the Options->General page, I tried setting the blog and site urls to have the ending slash in them (Otto suggested this would affect the urls of categories too), but upon saving changes (”Update Options”), WordPress automatically cut the trailing slash. I tried / and then also \.
#2:
How do we get the php code to produce the missing forward-slash?
In various combinations, I tried adding %2F, the [] for a slash, but I don’t know PHP thoroughly, and none worked:
…name&”%2F”&feed…
…name&%2F&feed…
…name&/&feed…
…name’&’/'&feed…
(My blog, if you want to see it, is imagiscape.ca/blog.)
Duplicate of #4550 which is fixed in 2.3.