WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] OPML Queries, like Category Feeds (Feasible Request) (4 posts)

  1. rolandog
    Member
    Posted 7 years ago #

    Is it possible to include support for queries of category titles to the wp-links-opml.php file?

    Like, for my 'Blogroll' category, I'd like to be able to see an OPML with only that section, since its the only section with RSS or ATOM feeds for all the links.

    For instance, my categories' names are all plural words, and my URLs for categories are like: example.com/just/podcasts/feed/.

    How about including a rewrite rule or something so that a query like
    http://rolandog.com/wp-links-opml.php?title=Blogroll
    can be passed by an URL like
    http://rolandog.com/opml/Blogroll

    With the additional feature of being 'case insensitive' so that 'Blogroll' and 'blogroll' are the same.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The functionality to get by link category number is already there, if that helps any.

    You can do something like these:
    http://rolandog.com/wp-links-opml.php?link_cat=1
    http://rolandog.com/wp-links-opml.php?link_cat=2
    http://rolandog.com/wp-links-opml.php?link_cat=3
    and so on.

    Okay, the URL's are not pretty or anything, but if you're just looking to get the actual OPML, that works. Adding support for "by name" would probably not be too hard, although case insensitivity is asking a lot. ;)

  3. rolandog
    Member
    Posted 7 years ago #

    Hi Otto42. Thanks for your reply. I din't know about the search by category. I guess this works for me... since I wanted to get only those links.

  4. rolandog
    Member
    Posted 7 years ago #

    Hey, I looked up some rewrite rules,... at this cheatsheet:
    http://www.ilovejackdaniels.com/mod_rewrite_cheat_sheet.png

    How about using something like:
    RewriteRule ^opml/([0-9-]+)/?$ wp-links-opml.php?link_cat=$1

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags