WordPress.org

Ready to get started?Download WordPress

Forums

Why Can't we make NEW custom rss feeds?? (5 posts)

  1. LiFTED
    Member
    Posted 6 years ago #

    Hi there!, I have been a long time wordpress user and developer. The only thing that really has me stumped is why I cannot for the life of me seem to make a NEW custom rss feed? I often like to integrate Flash and wordpress, and I have found in the past that, using one of the feeds to parse a custom XML structure for a flash data feed is a simple way to begin to integrate these 2 technologies. I realize that wordpress comes with an XMLRPC gateway built in, but I find that for many of the flash modules I have developed moving to XMLRPC is simply overkill.

    Can anyone provide any advice on how to accomplish this?... or can we maybe see this integrated into the next version of wordpress?... I am left wondering why this is so hard?... can anyone out there help!

  2. scribblerguy
    Member
    Posted 6 years ago #

    The only thing that really has me stumped is why I cannot for the life of me seem to make a NEW custom rss feed?

    What kind of "NEW custom rss feed" are you trying to make?

    If it's just a standard WP feed with a custom query, WP already does that. Googling 'wordpress "custom feed"' brings up the following on the first results page: Creating Custom WordPress Feeds.

    You can limit a query to posts by a specific author on a specific day with a specific tag.

    Now, if you want to create a custom RSS feed, or even a file with a custom XML structure, all you need is to create a PHP file and put at the top something like the following: <?php require('/wp-blog-header.php'); ?>
    Then you can use some custom query_post() query and design whatever your heart desires.

  3. LiFTED
    Member
    Posted 6 years ago #

    Hi Scribblerguy!~
    Thanks so much for replying in such a timely manner!...
    To give you a little more background on what this posting is all about, I will often integrate small flash apps with my wordpress themes, in the past I have simply edited the existing wp-rss.php file to spit out a custom XML structure which I can read in flash.

    The problem that I was experiencing with this was that if someone wanted to subscribe to the RSS feed which I have hijacked they get a bunch of useless info! So I wanted to create a new file which did the same thing as the rss feed, but didn't hijack any of the actual wordpress feed files.

    SO... to pose a question back to you... if I create a new file with the blog header included, and run a loop to spit out my posts, will I still be able to pass variables to the code such as cat=6??

    this is one of the major reasons why I would hi-jack the RSS feed, because I could call the same feed and dynamically query different categories or tag archives on the fly. Will this still work with the approach you recommend??

    thanks so much for your help and advice!

  4. scribblerguy
    Member
    Posted 6 years ago #

    SO... to pose a question back to you... if I create a new file with the blog header included, and run a loop to spit out my posts, will I still be able to pass variables to the code such as cat=6??

    It's just PHP. To test your question would have taken less than five minutes:
    (1) In a text editor, create a new file
    (2) Add the blogheader line.
    (3) Add some quick PHP code (hint, hint -- $_GET and WP's query_posts)
    (4) Copy/paste a loop from a default theme.
    (5) Save the file and move it to a server or your test server.
    (6) Access the file inside a browser with a query string.

    Don't ask a question that you can answer yourself, or at least be more forthright about your expertise. This is the "Requests and Feedback" sub-forum, not one of the support sub-forums. My earlier post was meant to show that what you asked for is possible and not that "hard" for someone who understands how WP works and has a basic understanding of PHP.

  5. LiFTED
    Member
    Posted 6 years ago #

    Whoa... easy tiger!
    You're right, this ended up being the wrong place to post this question, so my apologies for that, but nonetheless I really appreciate your advice on this issue! You have really helped me out scribblerguy and I don't want you to think I am ungrateful for that!

    In future I will be sure to place my posts in the approproiate forum, so as to not waste anyones time. Thanks again for your help and advice, its people like you that make wordpress so great!

Topic Closed

This topic has been closed to new replies.

About this Topic