WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Feed URL Generator misses Slash - php wp_list_categories(’sortby=name&feed=RSS’) (2 posts)

  1. imagiscapeca
    Member
    Posted 6 years ago #

    (I had accidentally posted this in the Installation category, so I have now closed that one.)

    Update:
    On the Options->General page, I tried setting the blog and site urls to have the ending slash in them, but upon saving changes (”Update Options”), WordPress automatically cut the trailing slashes. I tried / (forward slash) and \ (backslash, I believe).

    The code:

    <?php wp_list_categories(’sortby=name&feed=RSS’); ?>

    produces:

    http://www.example.com/category/caregiverfeed.
    but we need
    http://www.example.com/category/caregiver/feed.

    categoryfeed is not a feed,
    category/feed is a feed.

    How do we get the php code to produce the missing forward-slash?

    (Yes the feeds I manually entered work, but the list generated by the code above does not.)

    In various combinations, I tried adding %2F, the [__] for a slash:

    but I don’t know PHP, 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.)

  2. imagiscapeca
    Member
    Posted 6 years ago #

    This bug has been fixed for version 2.3.

    I didn't find this issue on Trac.wordpress.org, but Ryan Boren did, under the title
    "Category RSS feed function broken with URL rewrites"
    http://trac.wordpress.org/ticket/4550

Topic Closed

This topic has been closed to new replies.

About this Topic